Rollup merge of #133743 - bjoernager:slice-as-array, r=joboet

Fix docs for `<[T]>::as_array`.

Tracking issue: #133508

This PR fixes a small typographical error in the docs entry for `<[T]>::as_array`.
This commit is contained in:
Guillaume Gomez 2024-12-02 17:36:08 +01:00 committed by GitHub
commit 1638a5514b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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