Skip to content

Commit 34d5ab5

Browse files
authored
Rollup merge of rust-lang#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 926646f + aa38ad1 commit 34d5ab5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)