mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
64b897180d
add safety doc (section header) to two unsafe methods in `NonZero` This PR adds a Safety section to two unsafe methods in `NonZero`: - [unchecked_add](https://doc.rust-lang.org/nightly/core/num/struct.NonZero.html#method.unchecked_add) - [unchecked_mul](https://doc.rust-lang.org/nightly/core/num/struct.NonZero.html#method.unchecked_mul) The safety documentation is now consistent with that of [`u8::unchecked_add`](https://doc.rust-lang.org/nightly/core/primitive.u8.html#method.unchecked_add) and [`u8::unchecked_mul`](https://doc.rust-lang.org/nightly/core/primitive.u8.html#method.unchecked_mul).