Fix doc test of previous commit
This commit is contained in:
parent
8424cacff8
commit
8e025d8009
1 changed files with 2 additions and 0 deletions
|
|
@ -1324,6 +1324,7 @@ impl<T> Receiver<T> {
|
|||
/// Successfully receiving value before reaching deadline:
|
||||
///
|
||||
/// ```no_run
|
||||
/// #![feature(deadline_api)]
|
||||
/// use std::thread;
|
||||
/// use std::time::{Duration, Instant};
|
||||
/// use std::sync::mpsc;
|
||||
|
|
@ -1343,6 +1344,7 @@ impl<T> Receiver<T> {
|
|||
/// Receiving an error upon reaching deadline:
|
||||
///
|
||||
/// ```no_run
|
||||
/// #![feature(deadline_api)]
|
||||
/// use std::thread;
|
||||
/// use std::time::{Duration, Instant};
|
||||
/// use std::sync::mpsc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue