mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
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.
This commit is contained in:
commit
4430aab045
@ -345,6 +345,9 @@ mod prim_never {}
|
||||
mod prim_char {}
|
||||
|
||||
#[doc(primitive = "unit")]
|
||||
#[doc(alias = "(")]
|
||||
#[doc(alias = ")")]
|
||||
#[doc(alias = "()")]
|
||||
//
|
||||
/// The `()` type, also called "unit".
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user