This commit is contained in:
chr v1.x 2019-07-16 18:20:25 -07:00
parent 6080b27c16
commit 86e4f0582c
1 changed files with 1 additions and 2 deletions

View File

@ -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)
```