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

all: fix struct names error

This commit is contained in:
yuyi
2020-05-28 00:12:34 +08:00
committed by GitHub
parent 670820cc59
commit 84edbd83da
50 changed files with 142 additions and 142 deletions

View File

@@ -89,7 +89,7 @@ struct Chunk {
val string
}
struct K {
struct Kkk {
q []Chunk
}

View File

@@ -4,13 +4,13 @@ struct User {
name string
}
struct A {
struct Aaa {
mut:
m map[string]int
users map[string]User
}
fn (mut a A) set(key string, val int) {
fn (mut a Aaa) set(key string, val int) {
a.m[key] = val
}
@@ -47,7 +47,7 @@ fn test_map() {
users['1'] = User{'Peter'}
peter := users['1']
assert peter.name == 'Peter'
mut a := A{
mut a := Aaa{
m: map[string]int
users: map[string]User
}