Skip to content

Commit 026dbf0

Browse files
committed
Update comments on unsigned macro functions for u32 etc
They were still the comments as written for signed integers.
1 parent a5104dc commit 026dbf0

File tree

3 files changed

+158
-134
lines changed

3 files changed

+158
-134
lines changed

num/__private/signed_integer_macros.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,8 @@
513513
return Tuple<T, bool>::with(r.value, r.overflow); \
514514
} \
515515
\
516-
/** Saturating integer division. Computes self / rhs, saturating at the \
517-
* numeric bounds instead of overflowing. \
516+
/** Saturating integer multiplication. Computes self * rhs, saturating at \
517+
* the numeric bounds instead of overflowing. \
518518
*/ \
519519
constexpr T saturating_mul(const T& rhs) const& noexcept { \
520520
return __private::saturating_mul(primitive_value, rhs.primitive_value); \
@@ -878,7 +878,7 @@
878878
return out.value; \
879879
} \
880880
\
881-
/** Checked exponentiation. Computes `T::pow(exp)`, returning None if \
881+
/** Checked exponentiation. Computes `##T##::pow(exp)`, returning None if \
882882
* overflow occurred. \
883883
*/ \
884884
constexpr Option<T> checked_pow(const u32& rhs) const& noexcept { \
@@ -902,7 +902,7 @@
902902
return Tuple<T, bool>::with(r.value, r.overflow); \
903903
} \
904904
\
905-
/** Wrapping (modular) exponentiation. Computes `this->pow(exp)`, wrapping \
905+
/** Wrapping (modular) exponentiation. Computes self.pow(exp), wrapping \
906906
* around at the boundary of the type. \
907907
*/ \
908908
constexpr T wrapping_pow(const u32& exp) const& noexcept { \

0 commit comments

Comments
 (0)