Skip to content

Commit 6ad1d0f

Browse files
committed
auto merge of #9800 : vmx/rust/fix-random-doc, r=thestinger
The example for std::rand::random was still using <float>, which got removed from Rust.
2 parents 6aa5934 + 82f53d6 commit 6ad1d0f

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)