Typos
This commit is contained in:
parent
6080b27c16
commit
86e4f0582c
|
@ -169,7 +169,6 @@ a[0..<2] # returns @[1, 2]
|
|||
a[0..3] # returns @[1, 2, 3, 4]
|
||||
```
|
||||
|
||||
|
||||
### Python strings
|
||||
|
||||
Use double quotes: "foo" or """foo""", not 'foo'
|
||||
|
@ -194,7 +193,7 @@ echo a[0] # hi
|
|||
proc swap(tup: tuple[a: int, b: float]): tuple[c: float, d: int] =
|
||||
(tup.b, tup.a)
|
||||
|
||||
echo swap((1, 3.14) # (c: 3.14, d:1)
|
||||
echo swap((1, 3.14)) # (c: 3.14, d:1)
|
||||
|
||||
let c, d = swap(8, 4.2)
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue