Skip to content

Commit c23e78a

Browse files
authored
Remove unnecessary mut in doc example
1 parent 9b9d2af commit c23e78a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ impl Stdio {
935935
/// .expect("Failed to spawn child process");
936936
///
937937
/// {
938-
/// let mut stdin = child.stdin.as_mut().expect("Failed to open stdin");
938+
/// let stdin = child.stdin.as_mut().expect("Failed to open stdin");
939939
/// stdin.write_all("Hello, world!".as_bytes()).expect("Failed to write to stdin");
940940
/// }
941941
///

0 commit comments

Comments
 (0)