Fix removeSuffix rst code blocks
Add newline before `code-block` for `removeSuffix`
This commit is contained in:
parent
ecfbe4940b
commit
424b998f72
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
## 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`
|
## set of characters. If the set of characters is only equal to `Newlines`
|
||||||
## then it will remove both the newline and return feed.
|
## then it will remove both the newline and return feed.
|
||||||
|
##
|
||||||
## .. code-block:: nim
|
## .. code-block:: nim
|
||||||
## var
|
## var
|
||||||
## userInput = "Hello World!\r\n"
|
## 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) {.
|
proc removeSuffix*(s: var string, c: char) {.
|
||||||
rtl, extern: "nsuRemoveSuffixChar".} =
|
rtl, extern: "nsuRemoveSuffixChar".} =
|
||||||
## Removes a single character (in-place) from a string.
|
## Removes a single character (in-place) from a string.
|
||||||
|
##
|
||||||
## .. code-block:: nim
|
## .. code-block:: nim
|
||||||
## var
|
## var
|
||||||
## table = "users"
|
## table = "users"
|
||||||
|
|
@ -2331,6 +2333,7 @@ proc removeSuffix*(s: var string, c: char) {.
|
||||||
proc removeSuffix*(s: var string, suffix: string) {.
|
proc removeSuffix*(s: var string, suffix: string) {.
|
||||||
rtl, extern: "nsuRemoveSuffixString".} =
|
rtl, extern: "nsuRemoveSuffixString".} =
|
||||||
## Remove the first matching suffix (in-place) from a string.
|
## Remove the first matching suffix (in-place) from a string.
|
||||||
|
##
|
||||||
## .. code-block:: nim
|
## .. code-block:: nim
|
||||||
## var
|
## var
|
||||||
## answers = "yeses"
|
## answers = "yeses"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue