File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2120,8 +2120,8 @@ pub trait Iterator {
2120
2120
///
2121
2121
/// # Current implementation
2122
2122
///
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.
2125
2125
///
2126
2126
/// Time complexity: *O*(*n*)
2127
2127
///
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ impl AsFd for OwnedFd {
268
268
#[ inline]
269
269
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
270
270
// Safety: `OwnedFd` and `BorrowedFd` have the same validity
271
- // invariants, and the `BorrowdFd ` is bounded by the lifetime
271
+ // invariants, and the `BorrowedFd ` is bounded by the lifetime
272
272
// of `&self`.
273
273
unsafe { BorrowedFd :: borrow_raw ( self . as_raw_fd ( ) ) }
274
274
}
You can’t perform that action at this time.
0 commit comments