about summary refs log tree commit diff
path: root/src/bootstrap/doc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap/doc.rs')
-rw-r--r--src/bootstrap/doc.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs
index f8a549afc88..b43108ccaf9 100644
--- a/src/bootstrap/doc.rs
+++ b/src/bootstrap/doc.rs
@@ -82,7 +82,7 @@ fn open(builder: &Builder<'_>, path: impl AsRef<Path>) {
     }
 }
 
-// "src/libstd" -> ["src", "libstd"]
+// "library/std" -> ["library", "std"]
 //
 // Used for deciding whether a particular step is one requested by the user on
 // the `x.py doc` command line, which determines whether `--open` will open that
@@ -375,7 +375,7 @@ impl Step for Standalone {
         }
 
         // We open doc/index.html as the default if invoked as `x.py doc --open`
-        // with no particular explicit doc requested (e.g. src/libcore).
+        // with no particular explicit doc requested (e.g. library/core).
         if builder.paths.is_empty() || is_explicit_request(builder, "src/doc") {
             let index = out.join("index.html");
             open(builder, &index);
@@ -456,12 +456,10 @@ impl Step for Std {
         }
         builder.cp_r(&out_dir, &out);
 
-        // Look for src/libstd, src/libcore etc in the `x.py doc` arguments and
+        // Look for library/std, library/core etc in the `x.py doc` arguments and
         // open the corresponding rendered docs.
         for path in builder.paths.iter().map(components_simplified) {
-            if path.get(0) == Some(&"src")
-                && path.get(1).map_or(false, |dir| dir.starts_with("lib"))
-            {
+            if path.get(0) == Some(&"library") {
                 let requested_crate = &path[1][3..];
                 if krates.contains(&requested_crate) {
                     let index = out.join(requested_crate).join("index.html");