diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-12-21 02:47:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-21 02:47:33 +0100 |
| commit | 635ea920f159e02d69033bf87b25a82f67d4c124 (patch) | |
| tree | 8a384b2d5f19105c5ea0f82829d9152d135b2842 | |
| parent | c609b2eaf323186a1167ec1a9ffa69a7d4a5b1b9 (diff) | |
| parent | f2743a5db756bfdbe311815fa25a5a3e3fa92b95 (diff) | |
| download | rust-635ea920f159e02d69033bf87b25a82f67d4c124.tar.gz rust-635ea920f159e02d69033bf87b25a82f67d4c124.zip | |
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.
| -rw-r--r-- | library/std/src/primitive_docs.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs index c077512f80a..ec12e9f09d8 100644 --- a/library/std/src/primitive_docs.rs +++ b/library/std/src/primitive_docs.rs @@ -478,8 +478,10 @@ mod prim_unit {} #[stable(feature = "rust1", since = "1.0.0")] 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")] -// /// A fixed-size array, denoted `[T; N]`, for the element type, `T`, and the /// non-negative compile-time constant size, `N`. /// |
