Skip to content

Commit 4430aab

Browse files
authored
Rollup merge of #85334 - r00ster91:patch-8, r=dtolnay
Add doc aliases to `unit` I think it makes sense for `unit` to have the same doc aliases as `tuple` does.
2 parents b1e0d5f + 10c43c3 commit 4430aab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/std/src/primitive_docs.rs

+3
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ mod prim_never {}
345345
mod prim_char {}
346346

347347
#[doc(primitive = "unit")]
348+
#[doc(alias = "(")]
349+
#[doc(alias = ")")]
350+
#[doc(alias = "()")]
348351
//
349352
/// The `()` type, also called "unit".
350353
///

0 commit comments

Comments
 (0)