Skip to content

Commit

Permalink
Fix usage of <float> in docs
Browse files Browse the repository at this point in the history
The example for std::rand::random was still
using <float>, which got removed from Rust.
  • Loading branch information
vmx committed Oct 10, 2013
1 parent 8015f9c commit 82f53d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/rand/mod.rs
Expand Up @@ -732,7 +732,7 @@ impl<R: Rng> Rng for @mut R {
/// let x = random();
/// println!("{}", 2u * x);
/// } else {
/// println!("{}", random::<float>());
/// println!("{}", random::<f64>());
/// }
/// }
/// ```
Expand Down

5 comments on commit 82f53d6

@bors
Copy link
Contributor

@bors bors commented on 82f53d6 Oct 10, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from thestinger
at vmx@82f53d6

@bors
Copy link
Contributor

@bors bors commented on 82f53d6 Oct 10, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging vmx/rust/fix-random-doc = 82f53d6 into auto

@bors
Copy link
Contributor

@bors bors commented on 82f53d6 Oct 10, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vmx/rust/fix-random-doc = 82f53d6 merged ok, testing candidate = 6ad1d0f

@bors
Copy link
Contributor

@bors bors commented on 82f53d6 Oct 11, 2013

@bors
Copy link
Contributor

@bors bors commented on 82f53d6 Oct 11, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 6ad1d0f

Please sign in to comment.