From 85879fe83d72b46044517d390c98d2b0d942de15 Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Mon, 19 Apr 2021 22:59:23 +0200 Subject: [PATCH] improve wording --- src/librustdoc/html/static/main.js | 2 +- src/test/rustdoc-gui/lib.rs | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index ab341a647a8..164c504fd7f 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -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
open. + // Open all ancestor
to make this element visible. openParentDetails(h3.parentNode); } } diff --git a/src/test/rustdoc-gui/lib.rs b/src/test/rustdoc-gui/lib.rs index c1e161e1235..eeba3e3f907 100644 --- a/src/test/rustdoc-gui/lib.rs +++ b/src/test/rustdoc-gui/lib.rs @@ -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. @@ -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 }, +}