@@ -187,10 +187,6 @@ impl Duplex {
187
187
/// avoid deadlock: it ensures that the child does not block waiting for input from the parent,
188
188
/// while the parent waits for the child to exit.
189
189
///
190
- /// # Errors
191
- ///
192
- /// Relays the error from [`tokio::process::Child::wait()`]
193
- ///
194
190
/// # Examples
195
191
///
196
192
/// Basic usage:
@@ -214,6 +210,10 @@ impl Duplex {
214
210
/// }
215
211
/// # };
216
212
/// ```
213
+ ///
214
+ /// # Errors
215
+ ///
216
+ /// Relays the error from [`tokio::process::Child::wait()`]
217
217
pub async fn wait (
218
218
self ,
219
219
) -> Result <
@@ -460,10 +460,6 @@ impl Simplex {
460
460
/// avoid deadlock: it ensures that the child does not block waiting for input from the parent,
461
461
/// while the parent waits for the child to exit.
462
462
///
463
- /// # Errors
464
- ///
465
- /// Relays the error from [`tokio::process::Child::wait()`]
466
- ///
467
463
/// # Examples
468
464
///
469
465
/// Basic usage:
@@ -489,6 +485,10 @@ impl Simplex {
489
485
/// reader.read_to_string(&mut buffer).await.unwrap();
490
486
/// # };
491
487
/// ```
488
+ ///
489
+ /// # Errors
490
+ ///
491
+ /// Relays the error from [`tokio::process::Child::wait()`]
492
492
pub async fn wait ( self ) -> Result < std:: process:: ExitStatus , std:: io:: Error > {
493
493
let ( mut child, _) = self . eject ( ) ;
494
494
child. wait ( ) . await
@@ -546,9 +546,7 @@ impl Simplex {
546
546
///
547
547
/// # Errors
548
548
///
549
- /// * [`std::io::Error`] if failure when killing the process.
550
- ///
551
- /// [`std::io::Error`]: std::io::Error
549
+ /// If failure when killing the process.
552
550
pub async fn shutdown ( mut self ) -> std:: io:: Result < std:: process:: ExitStatus > {
553
551
match self
554
552
. 0
0 commit comments