Skip to content

Commit

Permalink
improve wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Apr 23, 2021
1 parent 9f8eeca commit 85879fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ function hideThemeButtonState() {
// 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);
}
}
Expand Down
8 changes: 7 additions & 1 deletion src/test/rustdoc-gui/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ pub struct Foo;

impl Foo {
#[must_use]
pub fn must_use(&self) -> bool { true }
pub fn must_use(&self) -> bool {
true
}
}

/// Just a normal enum.
Expand Down Expand Up @@ -85,3 +87,7 @@ pub trait AnotherOne {
/// let x = 12;
/// ```
pub fn check_list_code_block() {}

pub enum AnEnum {
WithVariants { and: usize, sub: usize, variants: usize },
}

0 comments on commit 85879fe

Please sign in to comment.