@@ -2163,7 +2163,7 @@ assert_eq!((-a).rem_euclid(-b), 1);
2163
2163
doc_comment! {
2164
2164
concat!( "Returns the logarithm of the number with respect to an arbitrary base.
2165
2165
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 .
2167
2167
2168
2168
This method may not be optimized owing to implementation details;
2169
2169
`self.checked_log2()` can produce results more efficiently for base 2, and
@@ -2214,7 +2214,7 @@ assert_eq!(result, Some(1));
2214
2214
doc_comment! {
2215
2215
concat!( "Returns the base 2 logarithm of the number.
2216
2216
2217
- Returns `None` if the number is lower than 1 .
2217
+ Returns `None` if the number is negative or zero .
2218
2218
2219
2219
# Examples
2220
2220
@@ -2246,7 +2246,7 @@ assert_eq!(result, Some(1));
2246
2246
doc_comment! {
2247
2247
concat!( "Returns the base 10 logarithm of the number.
2248
2248
2249
- Returns `None` if the number is lower than 1 .
2249
+ Returns `None` if the number is negative or zero .
2250
2250
2251
2251
# Examples
2252
2252
@@ -2269,8 +2269,6 @@ assert_eq!(result, Some(1));
2269
2269
}
2270
2270
}
2271
2271
2272
-
2273
-
2274
2272
doc_comment! {
2275
2273
concat!( "Computes the absolute value of `self`.
2276
2274
@@ -4283,7 +4281,7 @@ assert_eq!(7", stringify!($SelfT), ".rem_euclid(4), 3); // or any other integer
4283
4281
doc_comment! {
4284
4282
concat!( "Returns the logarithm of the number with respect to an arbitrary base.
4285
4283
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 .
4287
4285
4288
4286
This method may not be optimized owing to implementation details;
4289
4287
`self.checked_log2()` can produce results more efficiently for base 2, and
@@ -4334,7 +4332,7 @@ assert_eq!(result, Some(1));
4334
4332
doc_comment! {
4335
4333
concat!( "Returns the base 2 logarithm of the number.
4336
4334
4337
- Returns `None` if the number is lower than 1 .
4335
+ Returns `None` if the number is zero .
4338
4336
4339
4337
# Examples
4340
4338
@@ -4366,7 +4364,7 @@ assert_eq!(result, Some(1));
4366
4364
doc_comment! {
4367
4365
concat!( "Returns the base 10 logarithm of the number.
4368
4366
4369
- Returns `None` if the number is lower than 1 .
4367
+ Returns `None` if the number is zero .
4370
4368
4371
4369
# Examples
4372
4370
0 commit comments