@@ -658,7 +658,8 @@ macro_rules! uint_impl {
658
658
}
659
659
}
660
660
661
- /// Returns the logarithm of the number with respect to an arbitrary base.
661
+ /// Returns the logarithm of the number with respect to an arbitrary base,
662
+ /// rounded down.
662
663
///
663
664
/// This method might not be optimized owing to implementation details;
664
665
/// `log2` can produce results more efficiently for base 2, and `log10`
@@ -667,8 +668,7 @@ macro_rules! uint_impl {
667
668
/// # Panics
668
669
///
669
670
/// When the number is negative, zero, or if the base is not at least 2;
670
- /// it panics in debug mode and the return value is wrapped to 0 in
671
- /// release mode (the only situation in which the method can return 0).
671
+ /// it panics in debug mode and the return value is 0 in release mode.
672
672
///
673
673
/// # Examples
674
674
///
@@ -696,13 +696,12 @@ macro_rules! uint_impl {
696
696
}
697
697
}
698
698
699
- /// Returns the base 2 logarithm of the number.
699
+ /// Returns the base 2 logarithm of the number, rounded down .
700
700
///
701
701
/// # Panics
702
702
///
703
703
/// When the number is negative or zero it panics in debug mode and
704
- /// the return value is wrapped to 0 in release mode (the only situation in
705
- /// which the method can return 0).
704
+ /// the return value is 0 in release mode.
706
705
///
707
706
/// # Examples
708
707
///
@@ -730,13 +729,12 @@ macro_rules! uint_impl {
730
729
}
731
730
}
732
731
733
- /// Returns the base 10 logarithm of the number.
732
+ /// Returns the base 10 logarithm of the number, rounded down .
734
733
///
735
734
/// # Panics
736
735
///
737
736
/// When the number is negative or zero it panics in debug mode and the
738
- /// return value is wrapped to 0 in release mode (the only situation in
739
- /// which the method can return 0).
737
+ /// return value is 0 in release mode.
740
738
///
741
739
/// # Example
742
740
///
@@ -764,7 +762,8 @@ macro_rules! uint_impl {
764
762
}
765
763
}
766
764
767
- /// Returns the logarithm of the number with respect to an arbitrary base.
765
+ /// Returns the logarithm of the number with respect to an arbitrary base,
766
+ /// rounded down.
768
767
///
769
768
/// Returns `None` if the number is zero, or if the base is not at least 2.
770
769
///
@@ -804,7 +803,7 @@ macro_rules! uint_impl {
804
803
}
805
804
}
806
805
807
- /// Returns the base 2 logarithm of the number.
806
+ /// Returns the base 2 logarithm of the number, rounded down .
808
807
///
809
808
/// Returns `None` if the number is zero.
810
809
///
@@ -828,7 +827,7 @@ macro_rules! uint_impl {
828
827
}
829
828
}
830
829
831
- /// Returns the base 10 logarithm of the number.
830
+ /// Returns the base 10 logarithm of the number, rounded down .
832
831
///
833
832
/// Returns `None` if the number is zero.
834
833
///
@@ -2120,7 +2119,7 @@ macro_rules! uint_impl {
2120
2119
/// Returns the smallest power of two greater than or equal to `self`.
2121
2120
///
2122
2121
/// When return value overflows (i.e., `self > (1 << (N-1))` for type
2123
- /// `uN`), it panics in debug mode and return value is wrapped to 0 in
2122
+ /// `uN`), it panics in debug mode and the return value is wrapped to 0 in
2124
2123
/// release mode (the only situation in which method can return 0).
2125
2124
///
2126
2125
/// # Examples
0 commit comments