diff --git a/src/lib.rs b/src/lib.rs index 1ffa36d..a54f9a5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -966,12 +966,12 @@ impl<'a> Cmd<'a> { self.output_impl(false, false).map(|_| ()) } - /// Run the command and return its stdout as a string. + /// Run the command and return its stdout as a string. Any trailing newline or carriage return will be trimmed. pub fn read(&self) -> Result { self.read_stream(false) } - /// Run the command and return its stderr as a string. + /// Run the command and return its stderr as a string. Any trailing newline or carriage return will be trimmed. pub fn read_stderr(&self) -> Result { self.read_stream(true) }