Skip to content

Commit 8e025d8

Browse files
committed
Fix doc test of previous commit
1 parent 8424cac commit 8e025d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/sync/mpsc/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,7 @@ impl<T> Receiver<T> {
13241324
/// Successfully receiving value before reaching deadline:
13251325
///
13261326
/// ```no_run
1327+
/// #![feature(deadline_api)]
13271328
/// use std::thread;
13281329
/// use std::time::{Duration, Instant};
13291330
/// use std::sync::mpsc;
@@ -1343,6 +1344,7 @@ impl<T> Receiver<T> {
13431344
/// Receiving an error upon reaching deadline:
13441345
///
13451346
/// ```no_run
1347+
/// #![feature(deadline_api)]
13461348
/// use std::thread;
13471349
/// use std::time::{Duration, Instant};
13481350
/// use std::sync::mpsc;

0 commit comments

Comments
 (0)