Skip to content

Commit 39b80cb

Browse files
committed
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 <[email protected]>
1 parent 709efd9 commit 39b80cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustdoc/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ pub struct RenderOptions {
216216
pub extension_css: Option<PathBuf>,
217217
/// A map of crate names to the URL to use instead of querying the crate's `html_root_url`.
218218
pub extern_html_root_urls: BTreeMap<String, String>,
219-
/// A map of the default settings (values are as for DOM storage API). Keys should lack the
219+
/// A map of the default settings (values are as for DOM storage API). Keys should lack the
220220
/// `rustdoc-` prefix.
221221
pub default_settings: HashMap<String, String>,
222222
/// If present, suffix added to CSS/JavaScript files when referencing them in generated pages.

src/librustdoc/html/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub fn render<T: Print, S: Print>(
178178
default_settings = layout
179179
.default_settings
180180
.iter()
181-
.map(|(k, v)| format!(r#" data-{}="{}""#, k.replace('-', "_"), Escape(v),))
181+
.map(|(k, v)| format!(r#" data-{}="{}""#, k.replace('-', "_"), Escape(v)))
182182
.collect::<String>(),
183183
style_files = style_files
184184
.iter()

src/librustdoc/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ fn opts() -> Vec<RustcOptGroup> {
273273
o.optopt(
274274
"",
275275
"default-theme",
276-
"Set the default theme. THEME should be the theme name, generally lowercase. \
276+
"Set the default theme. THEME should be the theme name, generally lowercase. \
277277
If an unknown default theme is specified, the builtin default is used. \
278278
The set of themes, and the rustdoc built-in default is not stable.",
279279
"THEME",
@@ -284,7 +284,7 @@ fn opts() -> Vec<RustcOptGroup> {
284284
"",
285285
"default-setting",
286286
"Default value for a rustdoc setting (used when \"rustdoc-SETTING\" is absent \
287-
from web browser Local Storage). If VALUE is not supplied, \"true\" is used. \
287+
from web browser Local Storage). If VALUE is not supplied, \"true\" is used. \
288288
Supported SETTINGs and VALUEs are not documented and not stable.",
289289
"SETTING[=VALUE]",
290290
)

0 commit comments

Comments
 (0)