rename reference of `RangeError` to `RangeDefect` (#5902)

`RangeError` got deprecated in favor of `RangeDefect`. Update handbook.
This commit is contained in:
Etan Kissling 2024-02-17 20:29:06 +01:00 committed by GitHub
parent 403568cd2b
commit 9cd6b270df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ It is the preferred type to represent binary blobs, i.e. we use `seq[byte]` over
Nim allows defining ranges of valid value which will be runtime checked everytime the value changes for example
Nim defines by default `type Natural = range[0 .. high(int)]`. If the value of a Natural becomes less than 0
an RangeError exception will be thrown.
a `RangeDefect` will be thrown.
This is valuable to catch / prevent underflows.