diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-08-18 17:52:38 -0700 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-08-28 09:12:54 -0700 |
| commit | 276b8b125d3f60cebab702542b60207429fbb333 (patch) | |
| tree | 022549e5a1b801df28b222d3bcd37194b997b849 /src/libstd/io/process.rs | |
| parent | 3a52ef4613f85fba1ecfd8746388bf34a5499bf9 (diff) | |
Fallout from stabilizing core::option
Diffstat (limited to 'src/libstd/io/process.rs')
| -rw-r--r-- | src/libstd/io/process.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/process.rs b/src/libstd/io/process.rs index dd6c1f6016c..c1f4161fe18 100644 --- a/src/libstd/io/process.rs +++ b/src/libstd/io/process.rs @@ -54,7 +54,7 @@ use collections::HashMap; /// Err(e) => fail!("failed to execute child: {}", e), /// }; /// -/// let contents = child.stdout.get_mut_ref().read_to_end(); +/// let contents = child.stdout.as_mut().unwrap().read_to_end(); /// assert!(child.wait().unwrap().success()); /// ``` pub struct Process { @@ -95,7 +95,7 @@ pub type EnvMap = HashMap<CString, CString>; /// Err(e) => fail!("failed to execute process: {}", e), /// }; /// -/// let output = process.stdout.get_mut_ref().read_to_end(); +/// let output = process.stdout.as_mut().unwrap().read_to_end(); /// ``` #[deriving(Clone)] pub struct Command { |
