Skip to content

Commit 898ead0

Browse files
authored
Merge pull request #84 from derdilla/patch-1
Fix Weighted sampling links
2 parents b25646f + accf1a4 commit 898ead0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/guide-dist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,4 +201,4 @@ generalisation to any positive number of parameters.
201201
[`Beta`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Beta.html
202202
[`Dirichlet`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Dirichlet.html
203203
[`statrs`]: https://github.com/statrs-dev/statrs/
204-
[`WeightedIndex`]: https://docs.rs/rand/latest/rand/distr/struct.WeightedIndex.html
204+
[`WeightedIndex`]: https://docs.rs/rand/latest/rand/distr/weighted/struct.WeightedIndex.html

src/guide-seq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ immutable distributions, we offer the following:
7171
[`Distribution`]: https://docs.rs/rand/latest/rand/distr/trait.Distribution.html
7272
[`IteratorRandom`]: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html
7373
[`SliceRandom`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html
74-
[`WeightedIndex`]: https://docs.rs/rand/latest/rand/distr/struct.WeightedIndex.html
75-
[`WeightedAliasIndex`]: https://docs.rs/rand_distr/latest/rand_distr/weighted_alias/struct.WeightedAliasIndex.html
74+
[`WeightedIndex`]: https://docs.rs/rand_distr/latest/rand_distr/weighted/struct.WeightedIndex.html
75+
[`WeightedAliasIndex`]: https://docs.rs/rand_distr/latest/rand_distr/weighted/struct.WeightedAliasIndex.html
7676
[`SliceRandom::choose`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.choose
7777
[`SliceRandom::choose_mut`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.choose_mut
7878
[`SliceRandom::choose_multiple`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.choose_multiple

0 commit comments

Comments
 (0)