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
@ -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>());
|
||||
/// }
|
||||
/// }
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user