diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-19 18:31:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-19 18:31:41 +0200 |
| commit | ea58ed942198ba1ed01de7be68fb255a46945e97 (patch) | |
| tree | 66358f9be472e3682744059753b988d0bf7222cf | |
| parent | 908636f510c03b549a218d9a7b246348e21a4587 (diff) | |
| parent | c23e78a38b9643f15b008393b2506a813e7ee2ab (diff) | |
| download | rust-ea58ed942198ba1ed01de7be68fb255a46945e97.tar.gz rust-ea58ed942198ba1ed01de7be68fb255a46945e97.zip | |
Rollup merge of #64606 - adrianheine:patch-1, r=sfackler
Remove unnecessary `mut` in doc example
| -rw-r--r-- | src/libstd/process.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs index b8d57cfafea..c6dc02fea2d 100644 --- a/src/libstd/process.rs +++ b/src/libstd/process.rs @@ -935,7 +935,7 @@ impl Stdio { /// .expect("Failed to spawn child process"); /// /// { - /// let mut stdin = child.stdin.as_mut().expect("Failed to open stdin"); + /// let stdin = child.stdin.as_mut().expect("Failed to open stdin"); /// stdin.write_all("Hello, world!".as_bytes()).expect("Failed to write to stdin"); /// } /// |
