diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-15 16:26:09 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-15 16:26:09 +1100 |
| commit | 55534100ce175143e2c7223100b825bf130e750b (patch) | |
| tree | c14401522be20bd5f2b9b3dbfe741d5dc09ad9f9 /src/libstd/rand/distributions | |
| parent | 8f6df87c1d876895a7e313728b43d9710ae682bb (diff) | |
| download | rust-55534100ce175143e2c7223100b825bf130e750b.tar.gz rust-55534100ce175143e2c7223100b825bf130e750b.zip | |
std: fix spelling in docs.
Diffstat (limited to 'src/libstd/rand/distributions')
| -rw-r--r-- | src/libstd/rand/distributions/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/rand/distributions/mod.rs b/src/libstd/rand/distributions/mod.rs index a381ac35d30..dd882f051d3 100644 --- a/src/libstd/rand/distributions/mod.rs +++ b/src/libstd/rand/distributions/mod.rs @@ -45,7 +45,7 @@ pub trait Sample<Support> { /// `Sample`s that do not require keeping track of state. /// -/// Since no state is recored, each sample is (statistically) +/// Since no state is recorded, each sample is (statistically) /// independent of all others, assuming the `Rng` used has this /// property. // XXX maybe having this separate is overkill (the only reason is to @@ -84,7 +84,7 @@ pub struct Weighted<T> { /// is to be chosen: higher weight is more likely. /// /// The `Clone` restriction is a limitation of the `Sample` and -/// `IndepedentSample` traits. Note that `&T` is (cheaply) `Clone` for +/// `IndependentSample` traits. Note that `&T` is (cheaply) `Clone` for /// all `T`, as is `uint`, so one can store references or indices into /// another vector. /// @@ -92,7 +92,7 @@ pub struct Weighted<T> { /// /// ```rust /// use std::rand; -/// use std::rand::distributions::{Weighted, WeightedChoice, IndepedentSample}; +/// use std::rand::distributions::{Weighted, WeightedChoice, IndependentSample}; /// /// fn main() { /// let wc = WeightedChoice::new(~[Weighted { weight: 2, item: 'a' }, |
