Skip to content

Commit a510904

Browse files
committed
typos
1 parent 5bd7cfe commit a510904

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

compiler/sempass2.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ proc track(tracked: PEffects, n: PNode) =
10891089
if tracked.strictFuncsActive and isDangerousLocation(n[0], tracked.owner):
10901090
tracked.hasSideEffect = true
10911091
localError(tracked.config, n[0].info,
1092-
"cannot mutuate location $1 within a strict func" % renderTree(n[0]))
1092+
"cannot mutate location $1 within a strict func" % renderTree(n[0]))
10931093
of nkVarSection, nkLetSection:
10941094
for child in n:
10951095
let last = lastSon(child)

lib/pure/strutils.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ iterator splitLines*(s: string, keepEol = false): string =
624624
##
625625
## Every `character literal <manual.html#lexical-analysis-character-literals>`_
626626
## newline combination (CR, LF, CR-LF) is supported. The result strings
627-
## contain no trailing end of line characters unless parameter `keepEol`
627+
## contain no trailing end of line characters unless the parameter `keepEol`
628628
## is set to `true`.
629629
##
630630
## Example:

tests/effects/tfuncs_cannot_mutate.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
discard """
2-
errormsg: "cannot mutuate location select(x, z).data within a strict func"
2+
errormsg: "cannot mutate location select(x, z).data within a strict func"
33
line: 35
44
"""
55

tests/effects/tfuncs_cannot_mutate2.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
discard """
2-
errormsg: "cannot mutuate location x[0].a within a strict func"
2+
errormsg: "cannot mutate location x[0].a within a strict func"
33
line: 12
44
"""
55

tests/effects/tfuncs_cannot_mutate_simple.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
discard """
2-
errormsg: '''cannot mutuate location x.data within a strict func'''
2+
errormsg: '''cannot mutate location x.data within a strict func'''
33
line: 15
44
"""
55

0 commit comments

Comments
 (0)