@@ -51,7 +51,7 @@ fn size_from_ptr<T>(_: *const T) -> usize {
51
51
/// Basic usage:
52
52
///
53
53
/// ```
54
- /// // First, we declare a type which has `iter` method to get the `Iter` struct (&[usize here] ):
54
+ /// // First, we declare a type which has `iter` method to get the `Iter` struct (` &[usize]` here):
55
55
/// let slice = &[1, 2, 3];
56
56
///
57
57
/// // Then, we iterate over it:
@@ -112,7 +112,7 @@ impl<'a, T> Iter<'a, T> {
112
112
///
113
113
/// ```
114
114
/// // First, we declare a type which has the `iter` method to get the `Iter`
115
- /// // struct (&[usize here] ):
115
+ /// // struct (` &[usize]` here):
116
116
/// let slice = &[1, 2, 3];
117
117
///
118
118
/// // Then, we get the iterator:
@@ -167,7 +167,7 @@ impl<T> AsRef<[T]> for Iter<'_, T> {
167
167
///
168
168
/// ```
169
169
/// // First, we declare a type which has `iter_mut` method to get the `IterMut`
170
- /// // struct (&[usize here] ):
170
+ /// // struct (` &[usize]` here):
171
171
/// let mut slice = &mut [1, 2, 3];
172
172
///
173
173
/// // Then, we iterate over it and increment each element value:
@@ -246,7 +246,7 @@ impl<'a, T> IterMut<'a, T> {
246
246
///
247
247
/// ```
248
248
/// // First, we declare a type which has `iter_mut` method to get the `IterMut`
249
- /// // struct (&[usize here] ):
249
+ /// // struct (` &[usize]` here):
250
250
/// let mut slice = &mut [1, 2, 3];
251
251
///
252
252
/// {
0 commit comments