Updated Nim for Python Programmers (markdown)
This commit is contained in:
parent
a80bd17487
commit
d793b8fa31
|
@ -218,7 +218,7 @@ var is_happy = if has_cat(): "quite" else: "not much"
|
|||
|
||||
### Reading files line by line
|
||||
``` Nim
|
||||
for line in lines "yourfile.txt":
|
||||
for line in lines("yourfile.txt"):
|
||||
echo line
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue