Skip to content

Commit

Permalink
Generator will not actually panic
Browse files Browse the repository at this point in the history
  • Loading branch information
allenap committed Sep 23, 2023
1 parent 4c31acb commit 882d208
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ impl<'a> Petnames<'a> {
/// Calculate the cardinality of this `Petnames`.
///
/// If this is low, names may be repeated by the generator with a higher
/// frequency than your use-case may allow. If it is 0 (zero) the generator
/// will panic (unless `words` is also zero).
/// frequency than your use-case may allow.
///
/// This can saturate. If the total possible combinations of words exceeds
/// `u128::MAX` then this will return `u128::MAX`.
Expand Down

0 comments on commit 882d208

Please sign in to comment.