Remove explicit syntax highlight from docs.

This commit is contained in:
Joseph Crail 2015-03-12 22:42:38 -04:00
parent 3e4be02b80
commit fcf3f3209a
51 changed files with 172 additions and 167 deletions

View file

@ -59,7 +59,7 @@ impl Rand for Exp1 {
///
/// # Examples
///
/// ```rust
/// ```
/// use std::rand;
/// use std::rand::distributions::{Exp, IndependentSample};
///

View file

@ -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};
///

View file

@ -95,7 +95,7 @@ pub struct Weighted<T> {
///
/// # Examples
///
/// ```rust
/// ```
/// use std::rand;
/// use std::rand::distributions::{Weighted, WeightedChoice, IndependentSample};
///

View file

@ -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};
///

View file

@ -35,7 +35,7 @@ use distributions::{Sample, IndependentSample};
///
/// # Examples
///
/// ```rust
/// ```
/// use std::rand::distributions::{IndependentSample, Range};
///
/// fn main() {

View file

@ -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>>();

View file

@ -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};
///