]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/doc.rs
Deal with spaces in the rust version.
[rust.git] / src / bootstrap / doc.rs
index 96cabf754490b4950273099aebc1ab3dcf81e914..a1b5ca2ea2fa1f18c128645704f1dd329c0e6d79 100644 (file)
@@ -460,7 +460,7 @@ fn run(self, builder: &Builder<'_>) {
         // open the corresponding rendered docs.
         for path in builder.paths.iter().map(components_simplified) {
             if path.get(0) == Some(&"library") {
-                let requested_crate = &path[1][3..];
+                let requested_crate = &path[1];
                 if krates.contains(&requested_crate) {
                     let index = out.join(requested_crate).join("index.html");
                     open(builder, &index);