diff --git a/Nim-for-Python-Programmers.md b/Nim-for-Python-Programmers.md index ba44be1..b1f9cd7 100644 --- a/Nim-for-Python-Programmers.md +++ b/Nim-for-Python-Programmers.md @@ -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) ```