diff options
| author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2020-10-28 20:12:15 +0000 |
|---|---|---|
| committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2020-10-28 20:13:31 +0000 |
| commit | 39b80cb7c03ad3991679523b2c64e52d897d6673 (patch) | |
| tree | 56272e3906227dca55abfb3df2cd25231963c049 | |
| parent | 709efd9df6e21ca07c7c0cceea468663f8a52c23 (diff) | |
| download | rust-39b80cb7c03ad3991679523b2c64e52d897d6673.tar.gz rust-39b80cb7c03ad3991679523b2c64e52d897d6673.zip | |
rustdoc: Fix some nits
* Remove a needless comma in the Rust code * Replace double spaces after full stops with single spaces Requested-by: @GuillaumeGomez Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
| -rw-r--r-- | src/librustdoc/config.rs | 2 | ||||
| -rw-r--r-- | src/librustdoc/html/layout.rs | 2 | ||||
| -rw-r--r-- | src/librustdoc/lib.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs index 2558f9e0d78..3b6b3a826e2 100644 --- a/src/librustdoc/config.rs +++ b/src/librustdoc/config.rs @@ -216,7 +216,7 @@ pub struct RenderOptions { pub extension_css: Option<PathBuf>, /// 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<String, String>, - /// 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<String, String>, /// 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 29e44922c76..b089bcb0862 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -178,7 +178,7 @@ pub fn render<T: Print, S: Print>( 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::<String>(), style_files = style_files .iter() diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index 54463d5c375..7efbca5c6c3 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -273,7 +273,7 @@ fn opts() -> Vec<RustcOptGroup> { 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<RustcOptGroup> { "", "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]", ) |
