summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-11-04 23:01:31 -0800
committerAndreas Rumpf <rumpf_a@web.de>2018-11-05 08:01:31 +0100
commite4e19f8288d8f03e7ff7912e6200f26f9950df79 (patch)
treeccee3aa5159d2b092e5749c4d0dafc55202b6a56 /lib
parent62693457df0233c5f53154231922a3d28818c603 (diff)
downloadNim-e4e19f8288d8f03e7ff7912e6200f26f9950df79.tar.gz
stripLineEnd aka chomp (#9623)
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/strutils.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index fabb3f9f4..d110fb8ef 100644
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -2513,6 +2513,7 @@ proc stripLineEnd*(s: var string) =
   ## Returns ``s`` stripped from one of these suffixes:
   ## ``\r, \n, \r\n, \f, \v`` (at most once instance).
   ## For example, can be useful in conjunction with ``osproc.execCmdEx``.
+  ## aka: `chomp`:idx:
   runnableExamples:
     var s = "foo\n\n"
     s.stripLineEnd