diff options
| author | bors <bors@rust-lang.org> | 2021-05-24 10:02:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-24 10:02:55 +0000 |
| commit | 6f6919231e405cea114fbd6872b25c3614ee38f0 (patch) | |
| tree | 3d9a2e3cc11d3ec95f913a8c9f4ef8c6d6a30b69 /library/std/src/sys/unix | |
| parent | 68424e2f01ef6884af440114f7cf2ed01faf86e3 (diff) | |
| parent | 7c0db6f0f178334ca6e1fdfdfed25fb89daf568b (diff) | |
| download | rust-6f6919231e405cea114fbd6872b25c3614ee38f0.tar.gz rust-6f6919231e405cea114fbd6872b25c3614ee38f0.zip | |
Auto merge of #85601 - klensy:padint-example-fix, r=dtolnay
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.
Diffstat (limited to 'library/std/src/sys/unix')
0 files changed, 0 insertions, 0 deletions
