Skip to content

Commit

Permalink
Fix opening docs for std crates with ./x.py doc --open library/*
Browse files Browse the repository at this point in the history
The directories for core, alloc, std, proc_macro, and test crates now
correspond directly to the crate name and stripping the "lib" prefix is
no longer necessary.
  • Loading branch information
tmiasko committed Jul 29, 2020
1 parent 10c3757 commit 6b4c739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/doc.rs
Expand Up @@ -460,7 +460,7 @@ impl Step for Std {
// 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);
Expand Down

0 comments on commit 6b4c739

Please sign in to comment.