Clarifies system.lines() docstring.
Amends c087f905134b249cf20cbabc4066fbfa62dd668a.
This commit is contained in:
parent
63ab238f5d
commit
2c2174f2d0
1 changed files with 4 additions and 4 deletions
|
|
@ -2238,8 +2238,8 @@ when not defined(JS): #and not defined(NimrodVM):
|
||||||
iterator lines*(filename: string): TaintedString {.tags: [FReadIO].} =
|
iterator lines*(filename: string): TaintedString {.tags: [FReadIO].} =
|
||||||
## Iterates over any line in the file named `filename`.
|
## Iterates over any line in the file named `filename`.
|
||||||
##
|
##
|
||||||
## If the file does not exist `EIO` is raised. The iterated lines will be
|
## If the file does not exist `EIO` is raised. The trailing newline
|
||||||
## stripped off the trailing newline character(s). Example:
|
## character(s) are removed from the iterated lines. Example:
|
||||||
##
|
##
|
||||||
## .. code-block:: nimrod
|
## .. code-block:: nimrod
|
||||||
## import strutils
|
## import strutils
|
||||||
|
|
@ -2257,8 +2257,8 @@ when not defined(JS): #and not defined(NimrodVM):
|
||||||
iterator lines*(f: TFile): TaintedString {.tags: [FReadIO].} =
|
iterator lines*(f: TFile): TaintedString {.tags: [FReadIO].} =
|
||||||
## Iterate over any line in the file `f`.
|
## Iterate over any line in the file `f`.
|
||||||
##
|
##
|
||||||
## The iterated lines will be stripped off the trailing newline
|
## The trailing newline character(s) are removed from the iterated lines.
|
||||||
## character(s). Example:
|
## Example:
|
||||||
##
|
##
|
||||||
## .. code-block:: nimrod
|
## .. code-block:: nimrod
|
||||||
## proc countZeros(filename: TFile): tuple[lines, zeros: int] =
|
## proc countZeros(filename: TFile): tuple[lines, zeros: int] =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue