Skip to content

Commit 6e19984

Browse files
authored
Fix Clippy warnings
1 parent ba428a2 commit 6e19984

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/distributions/weighted_index.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ use serde::{Deserialize, Serialize};
3434
///
3535
/// Time complexity of sampling from `WeightedIndex` is `O(log N)` where
3636
/// `N` is the number of weights. There are two alternative implementations with
37-
/// different runtimes characteristics:
37+
/// different runtimes characteristics:
3838
/// * [`rand_distr::weighted_alias`](https://docs.rs/rand_distr/*/rand_distr/weighted_alias/index.html)
39-
/// supports `O(1)` sampling, but with much higher initialisation cost.
39+
/// supports `O(1)` sampling, but with much higher initialisation cost.
4040
/// * [`rand_distr::weighted_tree`](https://docs.rs/rand_distr/*/rand_distr/weighted_tree/index.html)
41-
/// keeps the weights in a tree structure where sampling and updating is `O(log N)`.
41+
/// keeps the weights in a tree structure where sampling and updating is `O(log N)`.
4242
///
4343
/// A `WeightedIndex<X>` contains a `Vec<X>` and a [`Uniform<X>`] and so its
4444
/// size is the sum of the size of those objects, possibly plus some alignment.

0 commit comments

Comments
 (0)