Skip to content

Commit 99cad12

Browse files
committed
Fix slice::first_mut docs
pointer -> reference
1 parent 38e3a57 commit 99cad12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl<T> [T] {
156156
if let [first, ..] = self { Some(first) } else { None }
157157
}
158158

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.
160160
///
161161
/// # Examples
162162
///

0 commit comments

Comments
 (0)