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>
This commit is contained in:
parent
709efd9df6
commit
39b80cb7c0
3 changed files with 4 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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]",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue