Skip to content

Commit 5271ffb

Browse files
committed
Disable examples on no-std
1 parent 4650ed8 commit 5271ffb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

examples/monte-carlo.rs

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
//! the square at random, calculate the fraction that fall within the circle,
2626
//! and multiply this fraction by 4.
2727
28+
#![cfg(feature="std")]
29+
30+
2831
extern crate rand;
2932

3033
use rand::distributions::{Distribution, Range};

examples/monty-hall.rs

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
//!
2828
//! [Monty Hall Problem]: https://en.wikipedia.org/wiki/Monty_Hall_problem
2929
30+
#![cfg(feature="std")]
31+
32+
3033
extern crate rand;
3134

3235
use rand::Rng;

0 commit comments

Comments
 (0)