summary refs log tree commit diff stats
path: root/tests/errmsgs
diff options
context:
space:
mode:
authoree7 <45465154+ee7@users.noreply.github.com>2020-12-07 17:07:12 +0100
committerGitHub <noreply@github.com>2020-12-07 17:07:12 +0100
commit84fea7c1445475aba51d889668f250b0261443e4 (patch)
tree032dbbe0445da2d5dd9330fe5c6d2bf46f77c907 /tests/errmsgs
parent71e2a9e569ab3380fd057e4fc16e6d4ccd66f1f4 (diff)
downloadNim-84fea7c1445475aba51d889668f250b0261443e4.tar.gz
strutils.nim: Use `func` everywhere (#16281)
* strutils.nim: procs with {.noSideEffect.} -> func

* strutils.nim: procs without {.noSideEffect.} -> func

* strutils.nim: proc -> func for links

* strutils.nim: proc -> func in doc comments

* test: add strutils to strictFuncs test

* test: proc -> func in errmsg test
Diffstat (limited to 'tests/errmsgs')
-rw-r--r--tests/errmsgs/tunknown_named_parameter.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/errmsgs/tunknown_named_parameter.nim b/tests/errmsgs/tunknown_named_parameter.nim
index 829ab9497..d3dd6cd2d 100644
--- a/tests/errmsgs/tunknown_named_parameter.nim
+++ b/tests/errmsgs/tunknown_named_parameter.nim
@@ -2,15 +2,15 @@ discard """
 cmd: "nim check $file"
 errormsg: "type mismatch: got <string, set[char], maxsplits: int literal(1)>"
 nimout: '''
-proc rsplit(s: string; sep: char; maxsplit: int = -1): seq[string]
+func rsplit(s: string; sep: char; maxsplit: int = -1): seq[string]
   first type mismatch at position: 2
   required type for sep: char
   but expression '{':'}' is of type: set[char]
-proc rsplit(s: string; sep: string; maxsplit: int = -1): seq[string]
+func 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[
+func rsplit(s: string; seps: set[char] = Whitespace; maxsplit: int = -1): seq[
     string]
   first type mismatch at position: 3
   unknown named parameter: maxsplits