Skip to content

Commit 3d44aca

Browse files
committed
Fix a typo in the documentation for the strict_shr function
1 parent e124355 commit 3d44aca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/num/int_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ macro_rules! int_impl {
14971497
}
14981498
}
14991499

1500-
/// Strict shift right. Computes `self >> rhs`, panicking `rhs` is
1500+
/// Strict shift right. Computes `self >> rhs`, panicking if `rhs` is
15011501
/// larger than or equal to the number of bits in `self`.
15021502
///
15031503
/// # Panics

library/core/src/num/uint_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,7 @@ macro_rules! uint_impl {
19021902
}
19031903
}
19041904

1905-
/// Strict shift right. Computes `self >> rhs`, panicking `rhs` is
1905+
/// Strict shift right. Computes `self >> rhs`, panicking if `rhs` is
19061906
/// larger than or equal to the number of bits in `self`.
19071907
///
19081908
/// # Panics

0 commit comments

Comments
 (0)