Skip to content

Commit a38bdd4

Browse files
authored
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).
2 parents f5f93d0 + ec71feb commit a38bdd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/iter/traits/iterator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,8 +2120,8 @@ pub trait Iterator {
21202120
///
21212121
/// # Current implementation
21222122
///
2123-
/// Current algorithms tries finding the first element for which the predicate evaluates
2124-
/// to false, and the last element for which it evaluates to true and repeatedly swaps them.
2123+
/// The current algorithm tries to find the first element for which the predicate evaluates
2124+
/// to false and the last element for which it evaluates to true, and repeatedly swaps them.
21252125
///
21262126
/// Time complexity: *O*(*n*)
21272127
///

0 commit comments

Comments
 (0)