Drop the trailing "/" in docs sidebar links

This commit is contained in:
Richard Feldman 2022-10-23 21:10:35 -04:00
parent c36393bdec
commit 7737aac810
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -138,8 +138,7 @@ pub fn generate_docs_html(filenames: Vec<PathBuf>) {
}
fn sidebar_link_url(module: &ModuleDocumentation) -> String {
let url = format!("{}{}/", base_url(), module.name.as_str());
url
format!("{}{}", base_url(), module.name.as_str())
}
fn page_title(package: &Documentation, module: &ModuleDocumentation) -> String {