mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
8 lines
320 B
Nim
8 lines
320 B
Nim
# imported by other modules, unlike helpers.nim which is included
|
|
|
|
template formatErrorIndexBound*[T](i, a, b: T): string =
|
|
"index out of bounds: (a: " & $a & ") <= (i: " & $i & ") <= (b: " & $b & ") "
|
|
|
|
template formatErrorIndexBound*[T](i, n: T): string =
|
|
"index out of bounds: (i: " & $i & ") <= (n: " & $n & ") "
|