Skip to content

Commit

Permalink
Fix slice::first_mut docs
Browse files Browse the repository at this point in the history
pointer -> reference
  • Loading branch information
Scripter17 committed Sep 9, 2024
1 parent 2582bbb commit 4b1440a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit 4b1440a

Please sign in to comment.