adds crate attribute to examples so they compile

This commit is contained in:
dvdsk 2023-07-16 23:35:38 +02:00
parent bd70b639fd
commit 4cf66f0b09
No known key found for this signature in database
GPG Key ID: 6CF9D20C5709A836

View File

@ -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;
/// #
@ -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;
/// #