about summary refs log tree commit diff
path: root/src/libstd/rand/distributions
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-12-15 16:26:09 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2013-12-15 16:26:09 +1100
commit55534100ce175143e2c7223100b825bf130e750b (patch)
treec14401522be20bd5f2b9b3dbfe741d5dc09ad9f9 /src/libstd/rand/distributions
parent8f6df87c1d876895a7e313728b43d9710ae682bb (diff)
downloadrust-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.rs6
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' },