Skip to content

Commit

Permalink
add whitespace on the right-hand side of --
Browse files Browse the repository at this point in the history
This is an em-dash, not some `--use` flag.
  • Loading branch information
narimiran committed May 3, 2019
1 parent 9ad96b5 commit 515ab81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/lookups.nim
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ proc errorUseQualifier*(c: PContext; info: TLineInfo; s: PSym) =
var candidate = initIdentIter(ti, c.importTable.symbols, s.name)
var i = 0
while candidate != nil:
if i == 0: err.add " --use "
if i == 0: err.add " -- use "
else: err.add " or "
err.add candidate.owner.name.s & "." & candidate.name.s
candidate = nextIdentIter(ti, c.importTable.symbols)
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/tambig_range.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
discard """
errormsg: "ambiguous identifier: 'range' --use system.range or mrange.range"
errormsg: "ambiguous identifier: 'range' -- use system.range or mrange.range"
line: 13
"""

Expand Down

0 comments on commit 515ab81

Please sign in to comment.