Skip to content

Commit 2967dab

Browse files
committed
Use consistent wording in comments, use is 0 instead of is zero
1 parent 5f8a240 commit 2967dab

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

library/core/src/num/int_macros.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ macro_rules! int_impl {
857857
///
858858
/// # Panics
859859
///
860-
/// This function will panic if `rhs` is zero.
860+
/// This function will panic if `rhs` is 0.
861861
///
862862
/// ## Overflow behavior
863863
///
@@ -930,7 +930,7 @@ macro_rules! int_impl {
930930
///
931931
/// # Panics
932932
///
933-
/// This function will panic if `rhs` is zero.
933+
/// This function will panic if `rhs` is 0.
934934
///
935935
/// ## Overflow behavior
936936
///
@@ -1003,7 +1003,7 @@ macro_rules! int_impl {
10031003
///
10041004
/// # Panics
10051005
///
1006-
/// This function will panic if `rhs` is zero.
1006+
/// This function will panic if `rhs` is 0.
10071007
///
10081008
/// ## Overflow behavior
10091009
///
@@ -1075,7 +1075,7 @@ macro_rules! int_impl {
10751075
///
10761076
/// # Panics
10771077
///
1078-
/// This function will panic if `rhs` is zero.
1078+
/// This function will panic if `rhs` is 0.
10791079
///
10801080
/// ## Overflow behavior
10811081
///
@@ -3062,7 +3062,7 @@ macro_rules! int_impl {
30623062
///
30633063
/// # Panics
30643064
///
3065-
/// This function will panic if `rhs` is zero.
3065+
/// This function will panic if `rhs` is 0.
30663066
///
30673067
/// ## Overflow behavior
30683068
///
@@ -3112,7 +3112,7 @@ macro_rules! int_impl {
31123112
/// If `rhs` is positive, calculates the smallest value greater than or
31133113
/// equal to `self` that is a multiple of `rhs`. If `rhs` is negative,
31143114
/// calculates the largest value less than or equal to `self` that is a
3115-
/// multiple of `rhs`. Returns `None` if `rhs` is zero or the operation
3115+
/// multiple of `rhs`. Returns `None` if `rhs` is 0 or the operation
31163116
/// would result in overflow.
31173117
///
31183118
/// # Examples

library/core/src/num/uint_macros.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ macro_rules! uint_impl {
980980
///
981981
/// # Panics
982982
///
983-
/// This function will panic if `rhs` is zero.
983+
/// This function will panic if `rhs` is 0.
984984
///
985985
/// # Examples
986986
///
@@ -1040,7 +1040,7 @@ macro_rules! uint_impl {
10401040
///
10411041
/// # Panics
10421042
///
1043-
/// This function will panic if `rhs` is zero.
1043+
/// This function will panic if `rhs` is 0.
10441044
///
10451045
/// # Examples
10461046
///
@@ -1100,7 +1100,7 @@ macro_rules! uint_impl {
11001100
///
11011101
/// # Panics
11021102
///
1103-
/// This function will panic if `rhs` is zero.
1103+
/// This function will panic if `rhs` is 0.
11041104
///
11051105
/// # Examples
11061106
///
@@ -1161,7 +1161,7 @@ macro_rules! uint_impl {
11611161
///
11621162
/// # Panics
11631163
///
1164-
/// This function will panic if `rhs` is zero.
1164+
/// This function will panic if `rhs` is 0.
11651165
///
11661166
/// # Examples
11671167
///
@@ -2926,7 +2926,7 @@ macro_rules! uint_impl {
29262926
///
29272927
/// # Panics
29282928
///
2929-
/// This function will panic if `rhs` is zero.
2929+
/// This function will panic if `rhs` is 0.
29302930
///
29312931
/// # Examples
29322932
///
@@ -2949,7 +2949,7 @@ macro_rules! uint_impl {
29492949
///
29502950
/// # Panics
29512951
///
2952-
/// This function will panic if `rhs` is zero.
2952+
/// This function will panic if `rhs` is 0.
29532953
///
29542954
/// # Examples
29552955
///
@@ -2979,7 +2979,7 @@ macro_rules! uint_impl {
29792979
///
29802980
/// # Panics
29812981
///
2982-
/// This function will panic if `rhs` is zero.
2982+
/// This function will panic if `rhs` is 0.
29832983
///
29842984
/// ## Overflow behavior
29852985
///
@@ -3008,7 +3008,7 @@ macro_rules! uint_impl {
30083008
}
30093009

30103010
/// Calculates the smallest value greater than or equal to `self` that
3011-
/// is a multiple of `rhs`. Returns `None` if `rhs` is zero or the
3011+
/// is a multiple of `rhs`. Returns `None` if `rhs` is 0 or the
30123012
/// operation would result in overflow.
30133013
///
30143014
/// # Examples

0 commit comments

Comments
 (0)