docgen: improve alignment of comments (still not perfect) (#15506)
* docgen: improve alignment of comments (still not perfect) * fix error message text in `tunknown_named_parameter` Co-authored-by: narimiran <narimiran@disroot.org>
This commit is contained in:
parent
0426a4d85a
commit
3b901d1e36
3 changed files with 9 additions and 8 deletions
|
|
@ -10,7 +10,8 @@ proc rsplit(s: string; sep: string; maxsplit: int = -1): seq[string]
|
|||
first type mismatch at position: 2
|
||||
required type for sep: string
|
||||
but expression '{':'}' is of type: set[char]
|
||||
proc rsplit(s: string; seps: set[char] = Whitespace; maxsplit: int = -1): seq[string]
|
||||
proc rsplit(s: string; seps: set[char] = Whitespace; maxsplit: int = -1): seq[
|
||||
string]
|
||||
first type mismatch at position: 3
|
||||
unknown named parameter: maxsplits
|
||||
|
||||
|
|
@ -22,6 +23,5 @@ expression: rsplit("abc:def", {':'}, maxsplits = 1)
|
|||
# bug #8043
|
||||
|
||||
|
||||
|
||||
import strutils
|
||||
"abc:def".rsplit({':'}, maxsplits = 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue