Skip to content

Commit ab89c88

Browse files
committed
Consistent placement of doc alias for primitives below the doc(primitive…)
1 parent 49c680a commit ab89c88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/std/src/primitive_docs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ mod prim_char {}
385385
#[stable(feature = "rust1", since = "1.0.0")]
386386
mod prim_unit {}
387387

388-
#[doc(alias = "ptr")]
389388
#[doc(primitive = "pointer")]
389+
#[doc(alias = "ptr")]
390390
//
391391
/// Raw, unsafe pointers, `*const T`, and `*mut T`.
392392
///
@@ -499,10 +499,10 @@ mod prim_unit {}
499499
#[stable(feature = "rust1", since = "1.0.0")]
500500
mod prim_pointer {}
501501

502+
#[doc(primitive = "array")]
502503
#[doc(alias = "[]")]
503504
#[doc(alias = "[T;N]")] // unfortunately, rustdoc doesn't have fuzzy search for aliases
504505
#[doc(alias = "[T; N]")]
505-
#[doc(primitive = "array")]
506506
/// A fixed-size array, denoted `[T; N]`, for the element type, `T`, and the
507507
/// non-negative compile-time constant size, `N`.
508508
///

0 commit comments

Comments
 (0)