Skip to content

Commit 4cf66f0

Browse files
committed
adds crate attribute to examples so they compile
1 parent bd70b63 commit 4cf66f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/std/src/thread/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,7 @@ pub fn sleep(dur: Duration) {
890890
/// A simple game loop that limits the game to 60 frames per second.
891891
///
892892
/// ```no_run
893+
/// #![feature(thread_sleep_until)]
893894
/// # use std::time::{Duration, Instant};
894895
/// # use std::thread;
895896
/// #
@@ -912,6 +913,7 @@ pub fn sleep(dur: Duration) {
912913
/// api call takes does not influence when we retry or when we give up
913914
///
914915
/// ```no_run
916+
/// #![feature(thread_sleep_until)]
915917
/// # use std::time::{Duration, Instant};
916918
/// # use std::thread;
917919
/// #

0 commit comments

Comments
 (0)