mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
fixes #10978
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
# imported by other modules, unlike helpers.nim which is included
|
||||
|
||||
template formatErrorIndexBound*[T](i, a, b: T): string =
|
||||
"index " & $i & " not in " & $a & " .. " & $b
|
||||
when defined(standalone):
|
||||
"indexOutOfBounds"
|
||||
else:
|
||||
"index " & $i & " not in " & $a & " .. " & $b
|
||||
|
||||
template formatErrorIndexBound*[T](i, n: T): string =
|
||||
formatErrorIndexBound(i, 0, n)
|
||||
|
||||
Reference in New Issue
Block a user