mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
Fix documentation of strutils.stripLineEnd (#17883)
It does not return anything.
This commit is contained in:
@@ -2812,7 +2812,7 @@ func strip*(s: string, leading = true, trailing = true,
|
||||
result = substr(s, first, last)
|
||||
|
||||
func stripLineEnd*(s: var string) =
|
||||
## Returns `s` stripped from one of these suffixes:
|
||||
## Strips one of these suffixes from `s` in-place:
|
||||
## `\r, \n, \r\n, \f, \v` (at most once instance).
|
||||
## For example, can be useful in conjunction with `osproc.execCmdEx`.
|
||||
## aka: `chomp`:idx:
|
||||
|
||||
Reference in New Issue
Block a user