diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-05-23 03:23:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-23 03:23:41 +0200 |
| commit | 4430aab045f1ce21baed75c9b3b793c54ec8e01b (patch) | |
| tree | 06f3a8f23d3923591f4801526aea8943b2768d6b | |
| parent | b1e0d5fda5815009d68ab90fa6c9cb8ba3580701 (diff) | |
| parent | 10c43c39801506d694cda04dfb8a7eeacba4e236 (diff) | |
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.
| -rw-r--r-- | library/std/src/primitive_docs.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs index 96ab32104ea..d05b2ffc4e8 100644 --- a/library/std/src/primitive_docs.rs +++ b/library/std/src/primitive_docs.rs @@ -345,6 +345,9 @@ mod prim_never {} mod prim_char {} #[doc(primitive = "unit")] +#[doc(alias = "(")] +#[doc(alias = ")")] +#[doc(alias = "()")] // /// The `()` type, also called "unit". /// |
