Fix prefetch links in the Standard Library page

This commit is contained in:
Christopher Duncan 2022-10-11 08:00:11 -04:00
parent 940be28ef0
commit 5ccd3c884d
No known key found for this signature in database
GPG key ID: CCC42F03843A4CA8

View file

@ -134,10 +134,8 @@ pub fn generate_docs_html(filenames: Vec<PathBuf>) {
}
fn sidebar_link_url(module: &ModuleDocumentation) -> String {
let mut href_buf = base_url();
href_buf.push_str(module.name.as_str());
href_buf
let url = format!("{baseUrl}{moduleName}/", baseUrl = base_url(), moduleName = module.name.as_str());
url
}
// converts plain-text code to highlighted html