1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: change .ReturnType and .Type to .return_type and .typ (#6494)

This commit is contained in:
Daniel Däschle
2020-09-28 06:13:38 +02:00
committed by GitHub
parent 71e1ca72ec
commit 06cade6c31
8 changed files with 29 additions and 29 deletions

View File

@ -2520,10 +2520,10 @@ fn decode<T>(data string) T {
// compile-time `for` loop
// T.fields gives an array of a field metadata type
$for field in T.fields {
$if field.Type is string {
$if field.typ is string {
// $(string_expr) produces an identifier
result.$(field.name) = get_string(data, field.name)
} $else $if field.Type is int {
} $else $if field.typ is int {
result.$(field.name) = get_int(data, field.name)
}
}