From cf5a4cae2d56126670f9ed979a5e1a61cade462f Mon Sep 17 00:00:00 2001 From: MagicPotatoBean <121609915+MagicPotatoBean@users.noreply.github.com> Date: Wed, 9 Jul 2025 10:32:15 +0100 Subject: [PATCH] Update smallint.rs Fix u1's range showing as "0..1" which (since its an exclusive bound) would represent only the number zero. Alternatively, you could change all the bounds to 0..=1, 0..=3, 0..=7, 0..=15... etc. --- num/src/smallint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/num/src/smallint.rs b/num/src/smallint.rs index d09b34d..f01c214 100644 --- a/num/src/smallint.rs +++ b/num/src/smallint.rs @@ -298,7 +298,7 @@ construct_smallint!( into_u8, 1, 1, - doc = "1-bit unsigned integer in the range `0..1`. It can be used instead of `bool` when \ + doc = "1-bit unsigned integer in the range `0..2`. It can be used instead of `bool` when \ 1-bit numeric (and not boolean) arithmetic is required" ); construct_smallint!(