Skip to content

Commit 832b1c2

Browse files
Fixes the rng example using a deprecated function
1 parent 7602a70 commit 832b1c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/rng.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ fn main() -> ! {
1717
let val = rng.get_rand().unwrap();
1818
hprintln!("random value {}", val).unwrap();
1919
loop {
20-
core::sync::atomic::spin_loop_hint();
20+
core::hint::spin_loop();
2121
}
2222
}

0 commit comments

Comments
 (0)