Add docs to `maybe_tuple_doc!`

This commit is contained in:
Michael Howell 2022-06-11 21:47:03 -07:00
parent 22c39aa835
commit 36fb094d25
1 changed files with 2 additions and 0 deletions

View File

@ -103,6 +103,8 @@ macro_rules! tuple_impls {
}
}
// If this is a unary tuple, it adds a doc comment.
// Otherwise, it hides the docs entirely.
macro_rules! maybe_tuple_doc {
($a:ident @ #[$meta:meta] $item:item) => {
#[cfg_attr(not(bootstrap), doc(tuple_variadic))]