diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-04-02 10:08:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-02 10:08:33 +0200 |
| commit | a38bdd44396dddecf2eb4c8d5ad1cb2d0209bf84 (patch) | |
| tree | c23738b459186ac53a306eaa4fb7152d075c3a7c | |
| parent | f5f93d0063b44a26fd3464405ebc4ef9edfebed1 (diff) | |
| parent | ec71feb98465c27319a42d31befc6150a2c2798a (diff) | |
| download | rust-a38bdd44396dddecf2eb4c8d5ad1cb2d0209bf84.tar.gz rust-a38bdd44396dddecf2eb4c8d5ad1cb2d0209bf84.zip | |
Rollup merge of #109839 - sartak:iter-grammar, r=scottmcm
Improve grammar of Iterator.partition_in_place This is my first PR against Rust, please let me know if there's anything I should be providing here! I didn't find any instructions specific to documentation grammar in the [std-dev guide](https://std-dev-guide.rust-lang.org/documentation/summary.html).
| -rw-r--r-- | library/core/src/iter/traits/iterator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs index 080330fa41e..36cf7defd6d 100644 --- a/library/core/src/iter/traits/iterator.rs +++ b/library/core/src/iter/traits/iterator.rs @@ -2120,8 +2120,8 @@ pub trait Iterator { /// /// # Current implementation /// - /// Current algorithms tries finding the first element for which the predicate evaluates - /// to false, and the last element for which it evaluates to true and repeatedly swaps them. + /// The current algorithm tries to find the first element for which the predicate evaluates + /// to false and the last element for which it evaluates to true, and repeatedly swaps them. /// /// Time complexity: *O*(*n*) /// |
