Merge rust-bitcoin/rust-bitcoin#4395: fix error in comment pow.rs

6ddbcb0283 fix error pow.rs (Alex Pikme)

Pull request description:

  hi! found typo

  Matagen -- typo
  Mutagen -- fix

ACKs for top commit:
  apoelstra:
    ACK 6ddbcb02834b1191e874b389d057a17b7b911ff1; successfully ran local tests

Tree-SHA512: deee4b2be35d0d786b7e4da7b9a662ba7ffe0503d13f374e712f5e2679ad679290470916da7ee3c64456d940b012a56fc42a28cd26a57e4889d047b14127c554
This commit is contained in:
merge-script 2025-04-25 15:50:59 +00:00
commit 41e9976998
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ impl U256 {
fn low_u128(&self) -> u128 { self.1 } fn low_u128(&self) -> u128 { self.1 }
/// Returns this `U256` as a `u128` saturating to `u128::MAX` if `self` is too big. /// Returns this `U256` as a `u128` saturating to `u128::MAX` if `self` is too big.
// Matagen gives false positive because >= and > both return u128::MAX // Mutagen gives false positive because >= and > both return u128::MAX
fn saturating_to_u128(&self) -> u128 { fn saturating_to_u128(&self) -> u128 {
if *self > U256::from(u128::MAX) { if *self > U256::from(u128::MAX) {
u128::MAX u128::MAX