mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 22:18:33 +00:00
fix pad_integral example
pad_integral's parameter `is_nonnegative - whether the original integer was either positive or zero`, but in example it checked as `self.nb > 0`, so it previously printed `-0` for `format!("{}", Foo::new(0)`, what is wrong.