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

docs: update code that doesn't work

This commit is contained in:
Don Alfons Nisnoni 2020-01-16 22:29:00 +08:00 committed by Alexander Medvednikov
parent 57f72f6cd8
commit 1e98a227cc

View File

@ -316,7 +316,7 @@ m.delete('two')
numbers := {
'one': 1,
'two': 2,
'two': 2
}
```
@ -461,13 +461,11 @@ match os {
else { println(os) }
}
number := 2
s := match number {
1 { 'one' }
2 { 'two' }
else {
println('this works too')
'many'
}
else { 'many'}
}
```
@ -506,6 +504,7 @@ p := Point{
x: 10
y: 20
}
println(p.x) // Struct fields are accessed using a dot
```