Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 36fb094

Browse files
committed
Add docs to maybe_tuple_doc!
1 parent 22c39aa commit 36fb094

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/tuple.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ macro_rules! tuple_impls {
103103
}
104104
}
105105

106+
// If this is a unary tuple, it adds a doc comment.
107+
// Otherwise, it hides the docs entirely.
106108
macro_rules! maybe_tuple_doc {
107109
($a:ident @ #[$meta:meta] $item:item) => {
108110
#[cfg_attr(not(bootstrap), doc(tuple_variadic))]

0 commit comments

Comments
 (0)