Skip to content

Commit f2743a5

Browse files
committed
Add array search aliases
1 parent b32e6e6 commit f2743a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/std/src/primitive_docs.rs

Lines changed: 3 additions & 1 deletion
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)