Fix slice::first_mut docs

pointer -> reference
This commit is contained in:
James C. Wise 2024-09-09 13:13:45 -04:00
parent 38e3a5771c
commit 99cad123ed
No known key found for this signature in database
GPG Key ID: 3182F8BB10E380BC

View File

@ -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
///