From ec90f9dd338a121d175189bd72d1bab3fb882124 Mon Sep 17 00:00:00 2001 From: alexey semenyuk Date: Fri, 29 Apr 2022 23:16:53 +0000 Subject: [PATCH 1/2] Fix documentation for log functions unsigned int --- library/core/src/num/uint_macros.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From 6ee70bc6b3e463c50afaea8d8191b0b4ee639771 Mon Sep 17 00:00:00 2001 From: alexey semenyuk Date: Fri, 29 Apr 2022 23:21:50 +0000 Subject: [PATCH 2/2] Fix documentation for log functions int --- library/core/src/num/int_macros.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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