// The element is not visible, we need to make it appear!
collapseDocs(collapses[0], "show");
}
- // In case this is a sub-variant, toggle the <details> open.
+ // Open all ancestor <details> to make this element visible.
openParentDetails(h3.parentNode);
}
}
impl Foo {
#[must_use]
- pub fn must_use(&self) -> bool { true }
+ pub fn must_use(&self) -> bool {
+ true
+ }
}
/// Just a normal enum.
/// let x = 12;
/// ```
pub fn check_list_code_block() {}
+
+pub enum AnEnum {
+ WithVariants { and: usize, sub: usize, variants: usize },
+}