logoalt Hacker News

alfons_foobaryesterday at 10:47 PM0 repliesview on HN

> `NonZeroU32::saturating_add(self, other: u32)` is able to return `NonZeroU32` though!

I was confused at first how that could work, but then I realized that of course, with _unsigned_ integers this works fine because you cannot add a negative number...