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:
parent
8015f9c27e
commit
82f53d6dc5
1 changed files with 1 additions and 1 deletions
|
|
@ -732,7 +732,7 @@ impl<R: Rng> Rng for @mut R {
|
|||
/// let x = random();
|
||||
/// println!("{}", 2u * x);
|
||||
/// } else {
|
||||
/// println!("{}", random::<float>());
|
||||
/// println!("{}", random::<f64>());
|
||||
/// }
|
||||
/// }
|
||||
/// ```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue