diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-17 15:20:27 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-17 15:20:27 +0530 |
| commit | 0b463b075e221a779ee65d90f603447baf6fe2cb (patch) | |
| tree | df1c86ae3fa09eae3899d7cdf9bd7d9293d6cf8e /src/librand | |
| parent | 46200e5090c94f2ab1812a00c0fd778a6784e2e9 (diff) | |
| parent | fcf3f3209accbb9240ea44a24165e35e50eba1d2 (diff) | |
| download | rust-0b463b075e221a779ee65d90f603447baf6fe2cb.tar.gz rust-0b463b075e221a779ee65d90f603447baf6fe2cb.zip | |
Rollup merge of #23329 - jbcrail:rm-syntax-highlight, r=sanxiyn
As suggested by @steveklabnik in #23254, I removed the redundant Rust syntax highlighting from the documentation.
Diffstat (limited to 'src/librand')
| -rw-r--r-- | src/librand/distributions/exponential.rs | 2 | ||||
| -rw-r--r-- | src/librand/distributions/gamma.rs | 8 | ||||
| -rw-r--r-- | src/librand/distributions/mod.rs | 2 | ||||
| -rw-r--r-- | src/librand/distributions/normal.rs | 4 | ||||
| -rw-r--r-- | src/librand/distributions/range.rs | 2 | ||||
| -rw-r--r-- | src/librand/lib.rs | 21 | ||||
| -rw-r--r-- | src/librand/reseeding.rs | 2 |
7 files changed, 21 insertions, 20 deletions
diff --git a/src/librand/distributions/exponential.rs b/src/librand/distributions/exponential.rs index 6820d9c5c48..3180f03cfd3 100644 --- a/src/librand/distributions/exponential.rs +++ b/src/librand/distributions/exponential.rs @@ -59,7 +59,7 @@ impl Rand for Exp1 { /// /// # Examples /// -/// ```rust +/// ``` /// use std::rand; /// use std::rand::distributions::{Exp, IndependentSample}; /// diff --git a/src/librand/distributions/gamma.rs b/src/librand/distributions/gamma.rs index 6659bf0f3ee..8eaac203fb4 100644 --- a/src/librand/distributions/gamma.rs +++ b/src/librand/distributions/gamma.rs @@ -39,7 +39,7 @@ use super::{IndependentSample, Sample, Exp}; /// /// # Examples /// -/// ```rust +/// ``` /// use std::rand; /// use std::rand::distributions::{IndependentSample, Gamma}; /// @@ -186,7 +186,7 @@ impl IndependentSample<f64> for GammaLargeShape { /// /// # Examples /// -/// ```rust +/// ``` /// use std::rand; /// use std::rand::distributions::{ChiSquared, IndependentSample}; /// @@ -243,7 +243,7 @@ impl IndependentSample<f64> for ChiSquared { /// /// # Examples /// -/// ```rust +/// ``` /// use std::rand; /// use std::rand::distributions::{FisherF, IndependentSample}; /// @@ -287,7 +287,7 @@ impl IndependentSample<f64> for FisherF { /// /// # Examples /// -/// ```rust +/// ``` /// use std::rand; /// use std::rand::distributions::{StudentT, IndependentSample}; /// diff --git a/src/librand/distributions/mod.rs b/src/librand/distributions/mod.rs index 47bc2f5a113..a46709932e2 100644 --- a/src/librand/distributions/mod.rs +++ b/src/librand/distributions/mod.rs @@ -93,7 +93,7 @@ pub struct Weighted<T> { /// /// # Examples /// -/// ```rust +/// ``` /// use std::rand; /// use std::rand::distributions::{Weighted, WeightedChoice, IndependentSample}; /// diff --git a/src/librand/distributions/normal.rs b/src/librand/distributions/normal.rs index aeca477fb94..d07964624bf 100644 --- a/src/librand/distributions/normal.rs +++ b/src/librand/distributions/normal.rs @@ -75,7 +75,7 @@ impl Rand for StandardNormal { /// /// # Examples /// -/// ```rust +/// ``` /// use std::rand; /// use std::rand::distributions::{Normal, IndependentSample}; /// @@ -123,7 +123,7 @@ impl IndependentSample<f64> for Normal { /// /// # Examples /// -/// ```rust +/// ``` /// use std::rand; /// use std::rand::distributions::{LogNormal, IndependentSample}; /// diff --git a/src/librand/distributions/range.rs b/src/librand/distributions/range.rs index 9a2576a87fc..4086e149e78 100644 --- a/src/librand/distributions/range.rs +++ b/src/librand/distributions/range.rs @@ -35,7 +35,7 @@ use distributions::{Sample, IndependentSample}; /// /// # Examples /// -/// ```rust +/// ``` /// use std::rand::distributions::{IndependentSample, Range}; /// /// fn main() { diff --git a/src/librand/lib.rs b/src/librand/lib.rs index c5ff8ffe457..5e52a176c9e 100644 --- a/src/librand/lib.rs +++ b/src/librand/lib.rs @@ -148,7 +148,7 @@ pub trait Rng : Sized { /// /// # Examples /// - /// ```rust + /// ``` /// use std::rand::{thread_rng, Rng}; /// /// let mut v = [0; 13579]; @@ -183,7 +183,7 @@ pub trait Rng : Sized { /// /// # Examples /// - /// ```rust + /// ``` /// use std::rand::{thread_rng, Rng}; /// /// let mut rng = thread_rng(); @@ -228,7 +228,7 @@ pub trait Rng : Sized { /// /// # Examples /// - /// ```rust + /// ``` /// use std::rand::{thread_rng, Rng}; /// /// let mut rng = thread_rng(); @@ -246,7 +246,7 @@ pub trait Rng : Sized { /// /// # Examples /// - /// ```rust + /// ``` /// use std::rand::{thread_rng, Rng}; /// /// let mut rng = thread_rng(); @@ -260,7 +260,7 @@ pub trait Rng : Sized { /// /// # Examples /// - /// ```rust + /// ``` /// use std::rand::{thread_rng, Rng}; /// /// let s: String = thread_rng().gen_ascii_chars().take(10).collect(); @@ -296,7 +296,7 @@ pub trait Rng : Sized { /// /// # Examples /// - /// ```rust + /// ``` /// use std::rand::{thread_rng, Rng}; /// /// let mut rng = thread_rng(); @@ -359,7 +359,7 @@ pub trait SeedableRng<Seed>: Rng { /// /// # Examples /// - /// ```rust + /// ``` /// use std::rand::{Rng, SeedableRng, StdRng}; /// /// let seed: &[_] = &[1, 2, 3, 4]; @@ -374,7 +374,7 @@ pub trait SeedableRng<Seed>: Rng { /// /// # Examples /// - /// ```rust + /// ``` /// use std::rand::{Rng, SeedableRng, StdRng}; /// /// let seed: &[_] = &[1, 2, 3, 4]; @@ -478,7 +478,8 @@ impl Rand for XorShiftRng { /// `[0,1)`. /// /// # Examples -/// ```rust +/// +/// ``` /// use std::rand::{random, Open01}; /// /// let Open01(val) = random::<Open01<f32>>(); @@ -495,7 +496,7 @@ pub struct Open01<F>(pub F); /// /// # Examples /// -/// ```rust +/// ``` /// use std::rand::{random, Closed01}; /// /// let Closed01(val) = random::<Closed01<f32>>(); diff --git a/src/librand/reseeding.rs b/src/librand/reseeding.rs index f39021d4a5f..81e65da37fc 100644 --- a/src/librand/reseeding.rs +++ b/src/librand/reseeding.rs @@ -102,7 +102,7 @@ impl<S, R: SeedableRng<S>, Rsdr: Reseeder<R> + Default> /// /// # Examples /// -/// ```rust +/// ``` /// use std::rand::{Rng, SeedableRng, StdRng}; /// use std::rand::reseeding::{Reseeder, ReseedingRng}; /// |
