Merge pull request #10318 (Better docs for four modules)

This commit is contained in:
Miran 2019-01-16 11:48:37 +01:00 • committed by GitHub
commit b48364694d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 4360 additions and 2021 deletions

View file

@ -2,10 +2,6 @@ discard """
cmd: "nim check $file"
errormsg: "type mismatch: got <string, set[char], maxsplits: int literal(1)>"
nimout: '''
proc rsplit(s: string; sep: string; maxsplit: int = -1): seq[string]
first type mismatch at position: 2
required type: string
but expression '{':'}' is of type: set[char]
proc rsplit(s: string; sep: char; maxsplit: int = -1): seq[string]
first type mismatch at position: 2
required type: char
@ -13,6 +9,10 @@ proc rsplit(s: string; sep: char; 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
proc rsplit(s: string; sep: string; maxsplit: int = -1): seq[string]
first type mismatch at position: 2
required type: string
but expression '{':'}' is of type: set[char]
expression: rsplit("abc:def", {':'}, maxsplits = 1)
'''

View file

@ -76,7 +76,7 @@ task "testskel", "create skeleton test dir for testing":
task "clean", "cleanup generated files":
var dirs = @["nimcache", "server"/"nimcache"]
dirs.map(proc(x: var string) =
dirs.apply(proc(x: var string) =
if existsDir(x): removeDir(x))
task "download", "download game assets":