@@ -136,8 +136,8 @@ impl<'a, T, D: Distribution<T>> Distribution<T> for &'a D {
136
136
/// A generic random value distribution. Generates values for various types
137
137
/// with numerically uniform distribution.
138
138
///
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) .
141
141
///
142
142
/// ## Built-in Implementations
143
143
///
@@ -149,13 +149,12 @@ impl<'a, T, D: Distribution<T>> Distribution<T> for &'a D {
149
149
/// over all values of the type.
150
150
/// * `char`: Uniformly distributed over all Unicode scalar values, i.e. all
151
151
/// 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
153
153
/// unassigned/reserved code points.
154
154
/// * `bool`: Generates `false` or `true`, each with probability 0.5.
155
155
/// * 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.)
159
158
///
160
159
/// The following aggregate types also implement the distribution `Uniform` as
161
160
/// long as their component types implement it:
@@ -186,8 +185,6 @@ impl<'a, T, D: Distribution<T>> Distribution<T> for &'a D {
186
185
/// println!("f32 from [0,1): {}", val);
187
186
/// ```
188
187
///
189
- /// [`Open01`]: struct.Open01.html
190
- /// [`Closed01`]: struct.Closed01.html
191
188
/// [`Exp1`]: struct.Exp1.html
192
189
/// [`StandardNormal`]: struct.StandardNormal.html
193
190
#[ derive( Debug ) ]
0 commit comments