Fix slice::first_mut docs · qinheping/verify-rust-std@4b1440a (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 4b1440a

Fix slice::first_mut docs

pointer -> reference

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 1 addition & 1 deletion

Original file line number Diff line number Diff line change
@@ -156,7 +156,7 @@ impl [T] {
156 156 if let [first, ..] = self { Some(first) } else { None }
157 157 }
158 158
159 -/// Returns a mutable pointer to the first element of the slice, or `None` if it is empty.
159 +/// Returns a mutable reference to the first element of the slice, or `None` if it is empty.
160 160 ///
161 161 /// # Examples
162 162 ///