@@ -658,7 +658,8 @@ macro_rules! uint_impl {
658658 }
659659 }
660660
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.
662663 ///
663664 /// This method might not be optimized owing to implementation details;
664665 /// `log2` can produce results more efficiently for base 2, and `log10`
@@ -667,8 +668,7 @@ macro_rules! uint_impl {
667668 /// # Panics
668669 ///
669670 /// 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.
672672 ///
673673 /// # Examples
674674 ///
@@ -696,13 +696,12 @@ macro_rules! uint_impl {
696696 }
697697 }
698698
699- /// Returns the base 2 logarithm of the number.
699+ /// Returns the base 2 logarithm of the number, rounded down .
700700 ///
701701 /// # Panics
702702 ///
703703 /// 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.
706705 ///
707706 /// # Examples
708707 ///
@@ -730,13 +729,12 @@ macro_rules! uint_impl {
730729 }
731730 }
732731
733- /// Returns the base 10 logarithm of the number.
732+ /// Returns the base 10 logarithm of the number, rounded down .
734733 ///
735734 /// # Panics
736735 ///
737736 /// 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.
740738 ///
741739 /// # Example
742740 ///
@@ -764,7 +762,8 @@ macro_rules! uint_impl {
764762 }
765763 }
766764
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.
768767 ///
769768 /// Returns `None` if the number is zero, or if the base is not at least 2.
770769 ///
@@ -804,7 +803,7 @@ macro_rules! uint_impl {
804803 }
805804 }
806805
807- /// Returns the base 2 logarithm of the number.
806+ /// Returns the base 2 logarithm of the number, rounded down .
808807 ///
809808 /// Returns `None` if the number is zero.
810809 ///
@@ -828,7 +827,7 @@ macro_rules! uint_impl {
828827 }
829828 }
830829
831- /// Returns the base 10 logarithm of the number.
830+ /// Returns the base 10 logarithm of the number, rounded down .
832831 ///
833832 /// Returns `None` if the number is zero.
834833 ///
@@ -2120,7 +2119,7 @@ macro_rules! uint_impl {
21202119 /// Returns the smallest power of two greater than or equal to `self`.
21212120 ///
21222121 /// 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
21242123 /// release mode (the only situation in which method can return 0).
21252124 ///
21262125 /// # Examples
0 commit comments