commit | e480a26ba3931e7fe07e3fa5317d701ac46be091 | [log] [tgz] |
---|---|---|
author | Diggory Hardy <dhardy@users.noreply.github.com> | Mon Dec 18 11:23:06 2017 +0000 |
committer | GitHub <noreply@github.com> | Mon Dec 18 11:23:06 2017 +0000 |
tree | f75dbead0312d7a719d1ffebe717abd0facff92b | |
parent | 1c6e2dc9f5281041c297f3e6e6b2ba773f54ea36 [diff] | |
parent | 144b0f11a4c44e856b88bedb90a2aa1c63b390ba [diff] |
Merge pull request #187 from tatref/patch-1 Fix name of argument in doc
diff --git a/src/distributions/mod.rs b/src/distributions/mod.rs index 63856a5..5de8efb 100644 --- a/src/distributions/mod.rs +++ b/src/distributions/mod.rs
@@ -133,7 +133,7 @@ /// /// Panics if: /// - /// - `v` is empty + /// - `items` is empty /// - the total weight is 0 /// - the total weight is larger than a `u32` can contain. pub fn new(items: &'a mut [Weighted<T>]) -> WeightedChoice<'a, T> {