Skip to content

Commit

Permalink
adds crate attribute to examples so they compile
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdsk committed Jul 16, 2023
1 parent bd70b63 commit 4cf66f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/std/src/thread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,7 @@ pub fn sleep(dur: Duration) {
/// A simple game loop that limits the game to 60 frames per second.
///
/// ```no_run
/// #![feature(thread_sleep_until)]
/// # use std::time::{Duration, Instant};
/// # use std::thread;
/// #
Expand All @@ -912,6 +913,7 @@ pub fn sleep(dur: Duration) {
/// api call takes does not influence when we retry or when we give up
///
/// ```no_run
/// #![feature(thread_sleep_until)]
/// # use std::time::{Duration, Instant};
/// # use std::thread;
/// #
Expand Down

0 comments on commit 4cf66f0

Please sign in to comment.