From 9cd6b270dfb2bca39b066fb4eee55d9fa7459d5b Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Sat, 17 Feb 2024 20:29:06 +0100 Subject: [PATCH] rename reference of `RangeError` to `RangeDefect` (#5902) `RangeError` got deprecated in favor of `RangeDefect`. Update handbook. --- docs/the_auditors_handbook/src/02.2_stack_ref_ptr_types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/the_auditors_handbook/src/02.2_stack_ref_ptr_types.md b/docs/the_auditors_handbook/src/02.2_stack_ref_ptr_types.md index 15849cccb..099360135 100644 --- a/docs/the_auditors_handbook/src/02.2_stack_ref_ptr_types.md +++ b/docs/the_auditors_handbook/src/02.2_stack_ref_ptr_types.md @@ -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.