add whitespace on the right-hand side of --
This is an em-dash, not some `--use` flag.
This commit is contained in:
parent
9ad96b58e6
commit
515ab81477
2 changed files with 2 additions and 2 deletions
|
|
@ -255,7 +255,7 @@ proc errorUseQualifier*(c: PContext; info: TLineInfo; s: PSym) =
|
||||||
var candidate = initIdentIter(ti, c.importTable.symbols, s.name)
|
var candidate = initIdentIter(ti, c.importTable.symbols, s.name)
|
||||||
var i = 0
|
var i = 0
|
||||||
while candidate != nil:
|
while candidate != nil:
|
||||||
if i == 0: err.add " --use "
|
if i == 0: err.add " -- use "
|
||||||
else: err.add " or "
|
else: err.add " or "
|
||||||
err.add candidate.owner.name.s & "." & candidate.name.s
|
err.add candidate.owner.name.s & "." & candidate.name.s
|
||||||
candidate = nextIdentIter(ti, c.importTable.symbols)
|
candidate = nextIdentIter(ti, c.importTable.symbols)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errormsg: "ambiguous identifier: 'range' --use system.range or mrange.range"
|
errormsg: "ambiguous identifier: 'range' -- use system.range or mrange.range"
|
||||||
line: 13
|
line: 13
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue