about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2024-07-27 08:06:20 -0700
committerEric Huss <eric@huss.org>2024-07-27 08:06:20 -0700
commit0f387eb39b33d018eac138bdfc4f16d26e4207f1 (patch)
treec84e1167dd868540f834ffd51c726fbad41ca096
parent78ee5d057baaa3a08e81c57828317126474c3ccf (diff)
downloadrust-0f387eb39b33d018eac138bdfc4f16d26e4207f1.tar.gz
rust-0f387eb39b33d018eac138bdfc4f16d26e4207f1.zip
Add clarifying documentation to require_and_update_submodule.
-rw-r--r--src/bootstrap/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs
index 68dfc89c5a1..49df30022e3 100644
--- a/src/bootstrap/src/lib.rs
+++ b/src/bootstrap/src/lib.rs
@@ -594,8 +594,11 @@ impl Build {
     /// Updates a submodule, and exits with a failure if submodule management
     /// is disabled and the submodule does not exist.
     ///
+    /// The given submodule name should be its path relative to the root of
+    /// the main repository.
+    ///
     /// The given `err_hint` will be shown to the user if the submodule is not
-    /// checked out.
+    /// checked out and submodule management is disabled.
     pub fn require_and_update_submodule(&self, submodule: &str, err_hint: Option<&str>) {
         // When testing bootstrap itself, it is much faster to ignore
         // submodules. Almost all Steps work fine without their submodules.