Skip to content

Commit 82f53d6

Browse files
committed
Fix usage of <float> in docs
The example for std::rand::random was still using <float>, which got removed from Rust.
1 parent 8015f9c commit 82f53d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/rand/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ impl<R: Rng> Rng for @mut R {
732732
/// let x = random();
733733
/// println!("{}", 2u * x);
734734
/// } else {
735-
/// println!("{}", random::<float>());
735+
/// println!("{}", random::<f64>());
736736
/// }
737737
/// }
738738
/// ```

0 commit comments

Comments
 (0)