Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#118397 - Zalathar:nonzero, r=WaffleLapkin Fix comments for unsigned non-zero `checked_add`, `saturating_add` While looking at rust-lang#118313, I happened to notice that two of the expanded comments appear to be slightly inaccurate. For these two methods, `other` is an ordinary unsigned integer, so it can be zero. Since the sum of non-zero and zero is always non-zero, the safety argument holds even when `other` is zero.
- Loading branch information