@@ -136,8 +136,8 @@ impl<'a, T, D: Distribution<T>> Distribution<T> for &'a D {
136136/// A generic random value distribution. Generates values for various types
137137/// with numerically uniform distribution.
138138///
139- /// For floating-point numbers, this generates values from the half- open range
140- /// `[ 0, 1)` (excluding 1). See also [`Open01`] and [`Closed01`] for alternatives .
139+ /// For floating-point numbers, this generates values from the open range
140+ /// `( 0, 1)` (i.e. excluding 0.0 and 1.0) .
141141///
142142/// ## Built-in Implementations
143143///
@@ -149,13 +149,12 @@ impl<'a, T, D: Distribution<T>> Distribution<T> for &'a D {
149149/// over all values of the type.
150150/// * `char`: Uniformly distributed over all Unicode scalar values, i.e. all
151151/// code points in the range `0...0x10_FFFF`, except for the range
152- /// `0xD800...0xDFFF` (the surrogate code points). This includes
152+ /// `0xD800...0xDFFF` (the surrogate code points). This includes
153153/// unassigned/reserved code points.
154154/// * `bool`: Generates `false` or `true`, each with probability 0.5.
155155/// * Floating point types (`f32` and `f64`): Uniformly distributed in the
156- /// half-open range `[0, 1)`. (The [`Open01`], [`Closed01`], [`Exp1`], and
157- /// [`StandardNormal`] distributions produce floating point numbers with
158- /// alternative ranges or distributions.)
156+ /// open range `(0, 1)`. (The [`Exp1`], and [`StandardNormal`] distributions
157+ /// produce floating point numbers with alternative ranges or distributions.)
159158///
160159/// The following aggregate types also implement the distribution `Uniform` as
161160/// long as their component types implement it:
@@ -186,8 +185,6 @@ impl<'a, T, D: Distribution<T>> Distribution<T> for &'a D {
186185/// println!("f32 from [0,1): {}", val);
187186/// ```
188187///
189- /// [`Open01`]: struct.Open01.html
190- /// [`Closed01`]: struct.Closed01.html
191188/// [`Exp1`]: struct.Exp1.html
192189/// [`StandardNormal`]: struct.StandardNormal.html
193190#[ derive( Debug ) ]
0 commit comments