summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornarimiran <narimiran@disroot.org>2019-05-03 11:33:29 +0200
committernarimiran <narimiran@disroot.org>2019-05-03 11:33:29 +0200
commit515ab81477c1c3e4811c4fbf43a3ff81b87be970 (patch)
tree003d631e065764e2a7bd158fa6e8f16852e09e64
parent9ad96b58e638c57ef20c22513e29cd17d18874ff (diff)
downloadNim-515ab81477c1c3e4811c4fbf43a3ff81b87be970.tar.gz
add whitespace on the right-hand side of `--`
This is an em-dash, not some `--use` flag.
-rw-r--r--compiler/lookups.nim2
-rw-r--r--tests/modules/tambig_range.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim
index 8bc263485..a8908b1f6 100644
--- a/compiler/lookups.nim
+++ b/compiler/lookups.nim
@@ -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)
diff --git a/tests/modules/tambig_range.nim b/tests/modules/tambig_range.nim
index 010350521..8fe488b59 100644
--- a/tests/modules/tambig_range.nim
+++ b/tests/modules/tambig_range.nim
@@ -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
 """