summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2014-01-14 10:38:03 +0100
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2014-01-15 22:23:24 +0100
commit2c2174f2d0415f975adb0e1679822afe394eee7d (patch)
tree8ce5aba14a82e9904c8332e07554db89fd43f5cb /lib/system.nim
parent63ab238f5d00a7d4c9501ae635efcbb28f2e4e1a (diff)
downloadNim-2c2174f2d0415f975adb0e1679822afe394eee7d.tar.gz
Clarifies system.lines() docstring.
Amends c087f905134b249cf20cbabc4066fbfa62dd668a.
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 0257670f4..70c8a529a 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2238,8 +2238,8 @@ when not defined(JS): #and not defined(NimrodVM):
     iterator lines*(filename: string): TaintedString {.tags: [FReadIO].} =
       ## Iterates over any line in the file named `filename`.
       ##
-      ## If the file does not exist `EIO` is raised. The iterated lines will be
-      ## stripped off the trailing newline character(s). Example:
+      ## If the file does not exist `EIO` is raised. The trailing newline
+      ## character(s) are removed from the iterated lines. Example:
       ##
       ## .. code-block:: nimrod
       ##   import strutils
@@ -2257,8 +2257,8 @@ when not defined(JS): #and not defined(NimrodVM):
     iterator lines*(f: TFile): TaintedString {.tags: [FReadIO].} =
       ## Iterate over any line in the file `f`.
       ##
-      ## The iterated lines will be stripped off the trailing newline
-      ## character(s). Example:
+      ## The trailing newline character(s) are removed from the iterated lines.
+      ## Example:
       ##
       ## .. code-block:: nimrod
       ##   proc countZeros(filename: TFile): tuple[lines, zeros: int] =