Skip to content

Commit 635ea92

Browse files
authored
Rollup merge of rust-lang#80159 - jyn514:array, r=m-ou-se
Add array search aliases Missed this in rust-lang#80068. This one will really fix rust-lang#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.
2 parents c609b2e + f2743a5 commit 635ea92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/std/src/primitive_docs.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,10 @@ mod prim_unit {}
478478
#[stable(feature = "rust1", since = "1.0.0")]
479479
mod prim_pointer {}
480480

481+
#[doc(alias = "[]")]
482+
#[doc(alias = "[T;N]")] // unfortunately, rustdoc doesn't have fuzzy search for aliases
483+
#[doc(alias = "[T; N]")]
481484
#[doc(primitive = "array")]
482-
//
483485
/// A fixed-size array, denoted `[T; N]`, for the element type, `T`, and the
484486
/// non-negative compile-time constant size, `N`.
485487
///

0 commit comments

Comments
 (0)