diff options
author | Silvio <stisa4@gmail.com> | 2017-10-23 11:11:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-23 11:11:08 +0200 |
commit | 424b998f72fbe7583d31cf23334ebbdf7d5cce41 (patch) | |
tree | cf91227a87ca82726ed00ab5f5ddc7d6aa4ad47e /lib | |
parent | ecfbe4940b47ed608bd8f39243b7f032d68cc0cd (diff) | |
download | Nim-424b998f72fbe7583d31cf23334ebbdf7d5cce41.tar.gz |
Fix `removeSuffix` rst code blocks
Add newline before `code-block` for `removeSuffix`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/strutils.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index 79e8210d4..3da8094f5 100644 --- a/lib/pure/strutils.nim +++ b/lib/pure/strutils.nim @@ -2296,6 +2296,7 @@ proc removeSuffix*(s: var string, chars: set[char] = Newlines) {. ## Removes the first matching character from the string (in-place) given a ## set of characters. If the set of characters is only equal to `Newlines` ## then it will remove both the newline and return feed. + ## ## .. code-block:: nim ## var ## userInput = "Hello World!\r\n" @@ -2321,6 +2322,7 @@ proc removeSuffix*(s: var string, chars: set[char] = Newlines) {. proc removeSuffix*(s: var string, c: char) {. rtl, extern: "nsuRemoveSuffixChar".} = ## Removes a single character (in-place) from a string. + ## ## .. code-block:: nim ## var ## table = "users" @@ -2331,6 +2333,7 @@ proc removeSuffix*(s: var string, c: char) {. proc removeSuffix*(s: var string, suffix: string) {. rtl, extern: "nsuRemoveSuffixString".} = ## Remove the first matching suffix (in-place) from a string. + ## ## .. code-block:: nim ## var ## answers = "yeses" |