@@ -2163,7 +2163,7 @@ assert_eq!((-a).rem_euclid(-b), 1);
21632163 doc_comment! {
21642164 concat!( "Returns the logarithm of the number with respect to an arbitrary base.
21652165
2166- Returns `None` if the number is zero, or if the base is zero or one .
2166+ Returns `None` if the number is negative or zero, or if the base is not at least 2 .
21672167
21682168This method may not be optimized owing to implementation details;
21692169`self.checked_log2()` can produce results more efficiently for base 2, and
@@ -2214,7 +2214,7 @@ assert_eq!(result, Some(1));
22142214 doc_comment! {
22152215 concat!( "Returns the base 2 logarithm of the number.
22162216
2217- Returns `None` if the number is lower than 1 .
2217+ Returns `None` if the number is negative or zero .
22182218
22192219# Examples
22202220
@@ -2246,7 +2246,7 @@ assert_eq!(result, Some(1));
22462246 doc_comment! {
22472247 concat!( "Returns the base 10 logarithm of the number.
22482248
2249- Returns `None` if the number is lower than 1 .
2249+ Returns `None` if the number is negative or zero .
22502250
22512251# Examples
22522252
@@ -2269,8 +2269,6 @@ assert_eq!(result, Some(1));
22692269 }
22702270 }
22712271
2272-
2273-
22742272 doc_comment! {
22752273 concat!( "Computes the absolute value of `self`.
22762274
@@ -4283,7 +4281,7 @@ assert_eq!(7", stringify!($SelfT), ".rem_euclid(4), 3); // or any other integer
42834281 doc_comment! {
42844282 concat!( "Returns the logarithm of the number with respect to an arbitrary base.
42854283
4286- Returns `None` if the number is negative or zero, or if the base is negative, zero, or one .
4284+ Returns `None` if the number is zero, or if the base is not at least 2 .
42874285
42884286This method may not be optimized owing to implementation details;
42894287`self.checked_log2()` can produce results more efficiently for base 2, and
@@ -4334,7 +4332,7 @@ assert_eq!(result, Some(1));
43344332 doc_comment! {
43354333 concat!( "Returns the base 2 logarithm of the number.
43364334
4337- Returns `None` if the number is lower than 1 .
4335+ Returns `None` if the number is zero .
43384336
43394337# Examples
43404338
@@ -4366,7 +4364,7 @@ assert_eq!(result, Some(1));
43664364 doc_comment! {
43674365 concat!( "Returns the base 10 logarithm of the number.
43684366
4369- Returns `None` if the number is lower than 1 .
4367+ Returns `None` if the number is zero .
43704368
43714369# Examples
43724370
0 commit comments