@@ -635,7 +635,8 @@ macro_rules! uint_impl {
635635 }
636636 }
637637
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.
639640 ///
640641 /// This method might not be optimized owing to implementation details;
641642 /// `log2` can produce results more efficiently for base 2, and `log10`
@@ -644,8 +645,7 @@ macro_rules! uint_impl {
644645 /// # Panics
645646 ///
646647 /// 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.
649649 ///
650650 /// # Examples
651651 ///
@@ -673,13 +673,12 @@ macro_rules! uint_impl {
673673 }
674674 }
675675
676- /// Returns the base 2 logarithm of the number.
676+ /// Returns the base 2 logarithm of the number, rounded down .
677677 ///
678678 /// # Panics
679679 ///
680680 /// 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.
683682 ///
684683 /// # Examples
685684 ///
@@ -707,13 +706,12 @@ macro_rules! uint_impl {
707706 }
708707 }
709708
710- /// Returns the base 10 logarithm of the number.
709+ /// Returns the base 10 logarithm of the number, rounded down .
711710 ///
712711 /// # Panics
713712 ///
714713 /// 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.
717715 ///
718716 /// # Example
719717 ///
@@ -741,7 +739,8 @@ macro_rules! uint_impl {
741739 }
742740 }
743741
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.
745744 ///
746745 /// Returns `None` if the number is zero, or if the base is not at least 2.
747746 ///
@@ -781,7 +780,7 @@ macro_rules! uint_impl {
781780 }
782781 }
783782
784- /// Returns the base 2 logarithm of the number.
783+ /// Returns the base 2 logarithm of the number, rounded down .
785784 ///
786785 /// Returns `None` if the number is zero.
787786 ///
@@ -805,7 +804,7 @@ macro_rules! uint_impl {
805804 }
806805 }
807806
808- /// Returns the base 10 logarithm of the number.
807+ /// Returns the base 10 logarithm of the number, rounded down .
809808 ///
810809 /// Returns `None` if the number is zero.
811810 ///
@@ -1992,7 +1991,7 @@ macro_rules! uint_impl {
19921991 /// Returns the smallest power of two greater than or equal to `self`.
19931992 ///
19941993 /// 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
19961995 /// release mode (the only situation in which method can return 0).
19971996 ///
19981997 /// # Examples
0 commit comments