diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs index 2558f9e0d789..3b6b3a826e2a 100644 --- a/src/librustdoc/config.rs +++ b/src/librustdoc/config.rs @@ -216,7 +216,7 @@ pub struct RenderOptions { pub extension_css: Option, /// A map of crate names to the URL to use instead of querying the crate's `html_root_url`. pub extern_html_root_urls: BTreeMap, - /// A map of the default settings (values are as for DOM storage API). Keys should lack the + /// A map of the default settings (values are as for DOM storage API). Keys should lack the /// `rustdoc-` prefix. pub default_settings: HashMap, /// If present, suffix added to CSS/JavaScript files when referencing them in generated pages. diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs index 29e44922c76a..b089bcb0862a 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -178,7 +178,7 @@ pub fn render( default_settings = layout .default_settings .iter() - .map(|(k, v)| format!(r#" data-{}="{}""#, k.replace('-', "_"), Escape(v),)) + .map(|(k, v)| format!(r#" data-{}="{}""#, k.replace('-', "_"), Escape(v))) .collect::(), style_files = style_files .iter() diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index 54463d5c3758..7efbca5c6c3b 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -273,7 +273,7 @@ fn opts() -> Vec { o.optopt( "", "default-theme", - "Set the default theme. THEME should be the theme name, generally lowercase. \ + "Set the default theme. THEME should be the theme name, generally lowercase. \ If an unknown default theme is specified, the builtin default is used. \ The set of themes, and the rustdoc built-in default is not stable.", "THEME", @@ -284,7 +284,7 @@ fn opts() -> Vec { "", "default-setting", "Default value for a rustdoc setting (used when \"rustdoc-SETTING\" is absent \ - from web browser Local Storage). If VALUE is not supplied, \"true\" is used. \ + from web browser Local Storage). If VALUE is not supplied, \"true\" is used. \ Supported SETTINGs and VALUEs are not documented and not stable.", "SETTING[=VALUE]", )