Skip to content

Commit 15b74f9

Browse files
authored
fix errors
1 parent 45d0913 commit 15b74f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/slice/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,10 +1099,10 @@ impl<T> [T] {
10991099
/// assert!(iter.next().is_none());
11001100
/// ```
11011101
///
1102-
/// Because the [`Iterator`] trait cannot represent the required lifetimes, there is no `windows_mut` analog to `windows`.
1102+
/// Because the [Iterator] trait cannot represent the required lifetimes, there is no `windows_mut` analog to `windows`.
11031103
/// (If there was, then `[0,1,2].windows_mut(2).collect()` would create 2 mutable references
11041104
/// to the middle element of that array, which would violate [the rules of references],
1105-
/// though a [`LendingIterator`] analog is possible.)
1105+
/// though a [LendingIterator] analog is possible.)
11061106
/// However, you can sometimes use [`Cell::as_slice_of_cells`](crate::cell::Cell::as_slice_of_cells) in
11071107
/// conjunction with `windows` to accomplish something similar:
11081108
///

0 commit comments

Comments
 (0)