Skip to content

Commit 5af813f

Browse files
authored
Merge pull request #77 from yotamofek/patch-1
Updating to 0.9 incorrectly says `usize` is still supported by `StandardUniform`
2 parents bdcbd5e + 6fc0d9a commit 5af813f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/update-0.9.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Some additional items were renamed in `rand_distr`:
125125

126126
The [`StandardUniform`] distribution no longer supports sampling `Option<T>` types (for any `T`).
127127

128-
`isize` and `usize` types are no longer supported by [`Fill`] or [`WeightedAliasIndex`]. `isize` is also no longer supported by [`Uniform`] or [`StandardUniform`]. `usize` remains supported by [`Uniform`] and [`StandardUniform`] and now has portable results across 32- and 64-bit platforms.
128+
`isize` and `usize` types are no longer supported by [`Fill`], [`WeightedAliasIndex`] or [`StandardUniform`]. `isize` is also no longer supported by [`Uniform`]. `usize` remains supported by [`Uniform`] through [`UniformUsize`] and now has portable results across 32- and 64-bit platforms.
129129

130130
The constructors `fn new`, `fn new_inclusive` for [`Uniform`] and [`UniformSampler`] now return a [`Result`] instead of panicking on invalid inputs. Additionally, [`Uniform`] now supports [`TryFrom`] (instead of `From`) for range types.
131131

@@ -146,6 +146,7 @@ See the `CHANGELOG.md` files for details of reproducibility-breaking changes aff
146146
[`ThreadRng`]: https://docs.rs/rand/latest/rand/rngs/struct.ThreadRng.html
147147
[`ReseedingRng`]: https://docs.rs/rand/latest/rand/rngs/struct.ReseedingRng.html
148148
[`Uniform`]: https://docs.rs/rand/latest/rand/distr/struct.Uniform.html
149+
[`UniformUsize`]: https://docs.rs/rand/latest/rand/distr/uniform/struct.UniformUsize.html
149150
[`WeightedAliasIndex`]: https://docs.rs/rand_distr/latest/rand_distr/weighted_alias/struct.WeightedAliasIndex.html
150151
[`rand_core`]: https://docs.rs/rand_core/
151152
[`rand_distr`]: https://docs.rs/rand_distr/

0 commit comments

Comments
 (0)