mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
6f6919231e
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.