diff options
| author | Volker Mische <volker.mische@gmail.com> | 2013-10-10 21:54:29 +0200 |
|---|---|---|
| committer | Volker Mische <volker.mische@gmail.com> | 2013-10-10 21:54:29 +0200 |
| commit | 82f53d6dc58903a9842e6f9fc30121f63ba17ee4 (patch) | |
| tree | 737ae69094ff51e947726a10eb340b75afeeab60 /src/libstd | |
| parent | 8015f9c27ec342dbf0b28c9c0c4769d8b3bcfc9f (diff) | |
| download | rust-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.rs | 2 |
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>()); /// } /// } /// ``` |
