Skip to content

Commit f581354

Browse files
authored
Rollup merge of #96567 - alex-semenyuk:fix_docs_for_logs_func, r=Mark-Simulacrum
Fix docs for u32 and i32 logs func Closes #96545
2 parents eacebb4 + 6ee70bc commit f581354

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

library/core/src/num/int_macros.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2189,7 +2189,7 @@ macro_rules! int_impl {
21892189
///
21902190
/// # Panics
21912191
///
2192-
/// When the number is zero, or if the base is not at least 2; it
2192+
/// When the number is negative, zero, or if the base is not at least 2; it
21932193
/// panics in debug mode and the return value is 0 in release
21942194
/// mode.
21952195
///
@@ -2223,7 +2223,7 @@ macro_rules! int_impl {
22232223
///
22242224
/// # Panics
22252225
///
2226-
/// When the number is zero it panics in debug mode and the return value
2226+
/// When the number is negative or zero it panics in debug mode and the return value
22272227
/// is 0 in release mode.
22282228
///
22292229
/// # Examples
@@ -2256,7 +2256,7 @@ macro_rules! int_impl {
22562256
///
22572257
/// # Panics
22582258
///
2259-
/// When the number is zero it panics in debug mode and the return value
2259+
/// When the number is negative or zero it panics in debug mode and the return value
22602260
/// is 0 in release mode.
22612261
///
22622262
/// # Example

library/core/src/num/uint_macros.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ macro_rules! uint_impl {
689689
///
690690
/// # Panics
691691
///
692-
/// When the number is negative, zero, or if the base is not at least 2;
692+
/// When the number is zero, or if the base is not at least 2;
693693
/// it panics in debug mode and the return value is 0 in release mode.
694694
///
695695
/// # Examples
@@ -722,7 +722,7 @@ macro_rules! uint_impl {
722722
///
723723
/// # Panics
724724
///
725-
/// When the number is negative or zero it panics in debug mode and
725+
/// When the number is zero it panics in debug mode and
726726
/// the return value is 0 in release mode.
727727
///
728728
/// # Examples
@@ -755,7 +755,7 @@ macro_rules! uint_impl {
755755
///
756756
/// # Panics
757757
///
758-
/// When the number is negative or zero it panics in debug mode and the
758+
/// When the number is zero it panics in debug mode and the
759759
/// return value is 0 in release mode.
760760
///
761761
/// # Example

0 commit comments

Comments
 (0)