Remove unnecessary mut
in doc example
This commit is contained in:
parent
9b9d2aff8d
commit
c23e78a38b
1 changed files with 1 additions and 1 deletions
|
@ -935,7 +935,7 @@ impl Stdio {
|
||||||
/// .expect("Failed to spawn child process");
|
/// .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");
|
/// stdin.write_all("Hello, world!".as_bytes()).expect("Failed to write to stdin");
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue