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).
This commit is contained in:
Nilstrieb 2023-04-02 10:08:33 +02:00 committed by GitHub
commit a38bdd4439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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*)
///