map: rename size to len

This commit is contained in:
ka-weihe 2020-06-21 16:51:02 +02:00 committed by GitHub
parent fbe5599526
commit 7f225f2eaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 116 additions and 116 deletions

View file

@ -879,7 +879,7 @@ fn parse_query_values(mut m Values, query string) ?bool {
// encode encodes the values into ``URL encoded'' form
// ('bar=baz&foo=quux') sorted by key.
pub fn (v Values) encode() string {
if v.size == 0 {
if v.len == 0 {
return ''
}
mut buf := strings.new_builder(200)