Rollup merge of #80159 - jyn514:array, r=m-ou-se
Add array search aliases Missed this in https://github.com/rust-lang/rust/pull/80068. This one will really fix https://github.com/rust-lang/rust/issues/46075. The last alias especially I'm a little unsure about - maybe fuzzy search should be fixed in rustdoc instead? Happy to make that change although I'd have to figure out how. r? ``@m-ou-se`` although cc ``@GuillaumeGomez`` for the search issue.
This commit is contained in:
commit
635ea920f1
1 changed files with 3 additions and 1 deletions
|
@ -478,8 +478,10 @@ mod prim_unit {}
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
mod prim_pointer {}
|
mod prim_pointer {}
|
||||||
|
|
||||||
|
#[doc(alias = "[]")]
|
||||||
|
#[doc(alias = "[T;N]")] // unfortunately, rustdoc doesn't have fuzzy search for aliases
|
||||||
|
#[doc(alias = "[T; N]")]
|
||||||
#[doc(primitive = "array")]
|
#[doc(primitive = "array")]
|
||||||
//
|
|
||||||
/// A fixed-size array, denoted `[T; N]`, for the element type, `T`, and the
|
/// A fixed-size array, denoted `[T; N]`, for the element type, `T`, and the
|
||||||
/// non-negative compile-time constant size, `N`.
|
/// non-negative compile-time constant size, `N`.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue