From e4e19f8288d8f03e7ff7912e6200f26f9950df79 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Sun, 4 Nov 2018 23:01:31 -0800 Subject: stripLineEnd aka chomp (#9623) --- lib/pure/strutils.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 -- cgit 1.4.1-2-gfad0