mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-22 13:34:47 +00:00
ba6957c9fb
DOC: fix hypothetical Rust code in `step_by()` docstring I don't know how important that is, but if I'm not mistaken, the hypothetical code in the docstring of `step_by()` (see https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.step_by) isn't correct. I guess writing `next()` instead of `self.next()` isn't a biggie, but this would also imply that `advance_n_and_return_first()` is a method, which AFAICT it isn't. I've also done some re-formatting in a separate commit and a parameter renaming in yet another commit. Feel free to take or leave any combination of those commits. |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |