about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorVolker Mische <volker.mische@gmail.com>2013-10-10 21:54:29 +0200
committerVolker Mische <volker.mische@gmail.com>2013-10-10 21:54:29 +0200
commit82f53d6dc58903a9842e6f9fc30121f63ba17ee4 (patch)
tree737ae69094ff51e947726a10eb340b75afeeab60 /src/libstd
parent8015f9c27ec342dbf0b28c9c0c4769d8b3bcfc9f (diff)
downloadrust-82f53d6dc58903a9842e6f9fc30121f63ba17ee4.tar.gz
rust-82f53d6dc58903a9842e6f9fc30121f63ba17ee4.zip
Fix usage of <float> in docs
The example for std::rand::random was still
using <float>, which got removed from Rust.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/rand/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rand/mod.rs b/src/libstd/rand/mod.rs
index 545c7698e73..b800c7b03af 100644
--- a/src/libstd/rand/mod.rs
+++ b/src/libstd/rand/mod.rs
@@ -732,7 +732,7 @@ impl<R: Rng> Rng for @mut R {
 ///         let x = random();
 ///         println!("{}", 2u * x);
 ///     } else {
-///         println!("{}", random::<float>());
+///         println!("{}", random::<f64>());
 ///     }
 /// }
 /// ```