Skip to content

Commit b6b8b5a

Browse files
committed
Rename Slice::choices() -> Slice::num_choices()
Signed-off-by: Justus Fluegel <[email protected]>
1 parent ebeaeb3 commit b6b8b5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/distributions/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl<'a, T> Slice<'a, T> {
8585
}
8686

8787
/// Returns the count of choices in this distribution
88-
pub fn choices(&self) -> NonZeroUsize {
88+
pub fn num_choices(&self) -> NonZeroUsize {
8989
// Safety: at construction time, it was ensured that the slice was
9090
// non-empty, as such the length can never be 0.
9191
unsafe { NonZeroUsize::new_unchecked(self.slice.len()) }

0 commit comments

Comments
 (0)