mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
Fix slice::first_mut docs
pointer -> reference
This commit is contained in:
parent
38e3a5771c
commit
99cad123ed
@ -156,7 +156,7 @@ impl<T> [T] {
|
||||
if let [first, ..] = self { Some(first) } else { None }
|
||||
}
|
||||
|
||||
/// Returns a mutable pointer to the first element of the slice, or `None` if it is empty.
|
||||
/// Returns a mutable reference to the first element of the slice, or `None` if it is empty.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user