about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author听寒 <10476912+hycinth22@users.noreply.github.com>2024-06-04 13:31:05 +0800
committerGitHub <noreply@github.com>2024-06-04 06:31:05 +0100
commita92a91b016ba6ea0942c81dfdd2b3e17ce98ebca (patch)
tree907ac21298cb39cc22af4e7d722ba990b9bce92d /src
parent244bbab256a640bf6aec34796ba4947b78872740 (diff)
downloadrust-a92a91b016ba6ea0942c81dfdd2b3e17ce98ebca.tar.gz
rust-a92a91b016ba6ea0942c81dfdd2b3e17ce98ebca.zip
should use `&` to load completions for PowerShell (#1978)
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustc-dev-guide/src/building/suggested.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/building/suggested.md b/src/doc/rustc-dev-guide/src/building/suggested.md
index d6f52ee56f2..884e4915d34 100644
--- a/src/doc/rustc-dev-guide/src/building/suggested.md
+++ b/src/doc/rustc-dev-guide/src/building/suggested.md
@@ -314,7 +314,7 @@ Zsh support will also be included once issues with [`clap_complete`](https://cra
 
 You can use `source ./src/etc/completions/x.py.<extension>`
 to load completions for your shell of choice,
-or `source .\src\etc\completions\x.py.ps1` for PowerShell.
+or `& .\src\etc\completions\x.py.ps1` for PowerShell.
 Adding this to your shell's startup script (e.g. `.bashrc`) will automatically load this completion.
 
 [`src/etc/rust_analyzer_settings.json`]: https://github.com/rust-lang/rust/blob/master/src/etc/rust_analyzer_settings.json