adds crate attribute to examples so they compile
This commit is contained in:
parent
bd70b639fd
commit
4cf66f0b09
1 changed files with 2 additions and 0 deletions
|
@ -890,6 +890,7 @@ pub fn sleep(dur: Duration) {
|
||||||
/// A simple game loop that limits the game to 60 frames per second.
|
/// A simple game loop that limits the game to 60 frames per second.
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
|
/// #![feature(thread_sleep_until)]
|
||||||
/// # use std::time::{Duration, Instant};
|
/// # use std::time::{Duration, Instant};
|
||||||
/// # use std::thread;
|
/// # use std::thread;
|
||||||
/// #
|
/// #
|
||||||
|
@ -912,6 +913,7 @@ pub fn sleep(dur: Duration) {
|
||||||
/// api call takes does not influence when we retry or when we give up
|
/// api call takes does not influence when we retry or when we give up
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
|
/// #![feature(thread_sleep_until)]
|
||||||
/// # use std::time::{Duration, Instant};
|
/// # use std::time::{Duration, Instant};
|
||||||
/// # use std::thread;
|
/// # use std::thread;
|
||||||
/// #
|
/// #
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue