@@ -635,7 +635,8 @@ macro_rules! uint_impl {
635
635
}
636
636
}
637
637
638
- /// Returns the logarithm of the number with respect to an arbitrary base.
638
+ /// Returns the logarithm of the number with respect to an arbitrary base,
639
+ /// rounded down.
639
640
///
640
641
/// This method might not be optimized owing to implementation details;
641
642
/// `log2` can produce results more efficiently for base 2, and `log10`
@@ -644,8 +645,7 @@ macro_rules! uint_impl {
644
645
/// # Panics
645
646
///
646
647
/// When the number is negative, zero, or if the base is not at least 2;
647
- /// it panics in debug mode and the return value is wrapped to 0 in
648
- /// release mode (the only situation in which the method can return 0).
648
+ /// it panics in debug mode and the return value is 0 in release mode.
649
649
///
650
650
/// # Examples
651
651
///
@@ -673,13 +673,12 @@ macro_rules! uint_impl {
673
673
}
674
674
}
675
675
676
- /// Returns the base 2 logarithm of the number.
676
+ /// Returns the base 2 logarithm of the number, rounded down .
677
677
///
678
678
/// # Panics
679
679
///
680
680
/// When the number is negative or zero it panics in debug mode and
681
- /// the return value is wrapped to 0 in release mode (the only situation in
682
- /// which the method can return 0).
681
+ /// the return value is 0 in release mode.
683
682
///
684
683
/// # Examples
685
684
///
@@ -707,13 +706,12 @@ macro_rules! uint_impl {
707
706
}
708
707
}
709
708
710
- /// Returns the base 10 logarithm of the number.
709
+ /// Returns the base 10 logarithm of the number, rounded down .
711
710
///
712
711
/// # Panics
713
712
///
714
713
/// When the number is negative or zero it panics in debug mode and the
715
- /// return value is wrapped to 0 in release mode (the only situation in
716
- /// which the method can return 0).
714
+ /// return value is 0 in release mode.
717
715
///
718
716
/// # Example
719
717
///
@@ -741,7 +739,8 @@ macro_rules! uint_impl {
741
739
}
742
740
}
743
741
744
- /// Returns the logarithm of the number with respect to an arbitrary base.
742
+ /// Returns the logarithm of the number with respect to an arbitrary base,
743
+ /// rounded down.
745
744
///
746
745
/// Returns `None` if the number is zero, or if the base is not at least 2.
747
746
///
@@ -781,7 +780,7 @@ macro_rules! uint_impl {
781
780
}
782
781
}
783
782
784
- /// Returns the base 2 logarithm of the number.
783
+ /// Returns the base 2 logarithm of the number, rounded down .
785
784
///
786
785
/// Returns `None` if the number is zero.
787
786
///
@@ -805,7 +804,7 @@ macro_rules! uint_impl {
805
804
}
806
805
}
807
806
808
- /// Returns the base 10 logarithm of the number.
807
+ /// Returns the base 10 logarithm of the number, rounded down .
809
808
///
810
809
/// Returns `None` if the number is zero.
811
810
///
@@ -1992,7 +1991,7 @@ macro_rules! uint_impl {
1992
1991
/// Returns the smallest power of two greater than or equal to `self`.
1993
1992
///
1994
1993
/// When return value overflows (i.e., `self > (1 << (N-1))` for type
1995
- /// `uN`), it panics in debug mode and return value is wrapped to 0 in
1994
+ /// `uN`), it panics in debug mode and the return value is wrapped to 0 in
1996
1995
/// release mode (the only situation in which method can return 0).
1997
1996
///
1998
1997
/// # Examples
0 commit comments