about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTshepang Mbambo <tshepang@gmail.com>2025-04-26 15:37:24 +0200
committerGitHub <noreply@github.com>2025-04-26 15:37:24 +0200
commit89bb181106817c7828c16dc75ce5b2a367664471 (patch)
tree84dfd2352a216aeab3b6436ec219d2b721fe6f2c
parente40391ae0b6954a0cc1387540374416c72cdccd4 (diff)
parent9c4d568cfc690fd3e00cde96abd17e7d214d580b (diff)
downloadrust-89bb181106817c7828c16dc75ce5b2a367664471.tar.gz
rust-89bb181106817c7828c16dc75ce5b2a367664471.zip
Merge pull request #2356 from rust-lang/tshepang-patch-2
replace command that does not work
-rw-r--r--src/doc/rustc-dev-guide/src/git.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/git.md b/src/doc/rustc-dev-guide/src/git.md
index 5a698618505..8118ddff10c 100644
--- a/src/doc/rustc-dev-guide/src/git.md
+++ b/src/doc/rustc-dev-guide/src/git.md
@@ -256,9 +256,12 @@ Changes not staged for commit:
 no changes added to commit (use "git add" and/or "git commit -a")
 ```
 
-These changes are not changes to files: they are changes to submodules (more on this
-[later](#git-submodules)). To get rid of those, run `./x --help`, which will automatically update
-the submodules.
+These changes are not changes to files: they are changes to submodules (more on this [later](#git-submodules)).
+To get rid of those:
+
+```console
+git submodule update
+```
 
 Some submodules are not actually needed; for example, `src/llvm-project` doesn't need to be checked
 out if you're using `download-ci-llvm`.  To avoid having to keep fetching its history, you can use