Fix usage of <float> in docs

The example for std::rand::random was still
using <float>, which got removed from Rust.
This commit is contained in:
Volker Mische 2013-10-10 21:54:29 +02:00
parent 8015f9c27e
commit 82f53d6dc5

View File

@ -732,7 +732,7 @@ fn fill_bytes(&mut self, bytes: &mut [u8]) {
/// let x = random();
/// println!("{}", 2u * x);
/// } else {
/// println!("{}", random::<float>());
/// println!("{}", random::<f64>());
/// }
/// }
/// ```