summary refs log tree commit diff stats
path: root/lib/system/indexerrors.nim
blob: cb1d522c97659b5769a8def976ad28096ec803b8 (plain) (blame)
1
2
3
4
5
6
7
# imported by other modules, unlike helpers.nim which is included

template formatErrorIndexBound*[T](i, a, b: T): string =
  "index " & $i & " not in " & $a & " .. " & $b

template formatErrorIndexBound*[T](i, n: T): string =
  formatErrorIndexBound(i, 0, n)