Skip to content

Commit

Permalink
Rollup merge of #133743 - bjoernager:slice-as-array, r=joboet
Browse files Browse the repository at this point in the history
Fix docs for `<[T]>::as_array`.

Tracking issue: #133508

This PR fixes a small typographical error in the docs entry for `<[T]>::as_array`.
  • Loading branch information
GuillaumeGomez authored Dec 2, 2024
2 parents 97cc31a + b1ff3c8 commit 1638a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ impl<T> [T] {

/// Gets a reference to the underlying array.
///
/// If `N` is not exactly equal to slice's the length of `self`, then this method returns `None`.
/// If `N` is not exactly equal to the length of `self`, then this method returns `None`.
#[unstable(feature = "slice_as_array", issue = "133508")]
#[inline]
#[must_use]
Expand Down

0 comments on commit 1638a55

Please sign in to comment.