diff --git a/library/core/src/num/int_macros.rs b/library/core/src/num/int_macros.rs index ec460286d0378..1bf447347408d 100644 --- a/library/core/src/num/int_macros.rs +++ b/library/core/src/num/int_macros.rs @@ -2189,7 +2189,7 @@ macro_rules! int_impl { /// /// # Panics /// - /// When the number is zero, or if the base is not at least 2; it + /// When the number is negative, zero, or if the base is not at least 2; it /// panics in debug mode and the return value is 0 in release /// mode. /// @@ -2223,7 +2223,7 @@ macro_rules! int_impl { /// /// # Panics /// - /// When the number is zero it panics in debug mode and the return value + /// When the number is negative or zero it panics in debug mode and the return value /// is 0 in release mode. /// /// # Examples @@ -2256,7 +2256,7 @@ macro_rules! int_impl { /// /// # Panics /// - /// When the number is zero it panics in debug mode and the return value + /// When the number is negative or zero it panics in debug mode and the return value /// is 0 in release mode. /// /// # Example diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs index 514ac69f7e049..ce52e4773ce1f 100644 --- a/library/core/src/num/uint_macros.rs +++ b/library/core/src/num/uint_macros.rs @@ -689,7 +689,7 @@ macro_rules! uint_impl { /// /// # Panics /// - /// When the number is negative, zero, or if the base is not at least 2; + /// When the number is zero, or if the base is not at least 2; /// it panics in debug mode and the return value is 0 in release mode. /// /// # Examples @@ -722,7 +722,7 @@ macro_rules! uint_impl { /// /// # Panics /// - /// When the number is negative or zero it panics in debug mode and + /// When the number is zero it panics in debug mode and /// the return value is 0 in release mode. /// /// # Examples @@ -755,7 +755,7 @@ macro_rules! uint_impl { /// /// # Panics /// - /// When the number is negative or zero it panics in debug mode and the + /// When the number is zero it panics in debug mode and the /// return value is 0 in release mode. /// /// # Example