Skip to content

Commit

Permalink
fix: wrong operator in nCk helper
Browse files Browse the repository at this point in the history
  • Loading branch information
SPodjasek committed Sep 5, 2023
1 parent 73ac4b0 commit 21274ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dart_zxcvbn/lib/src/scoring.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ double log10(num x) => log(x) / ln10;
/// src: http://blog.plover.com/math/choose.html
double nCk(num n, num k) {
double count = n.toDouble();
if (k < count) return 0;
if (k > count) return 0;
if (k == 0) return 1;
double coEff = 1;
for (int i = 1; i <= k; i++) {
Expand Down

0 comments on commit 21274ef

Please sign in to comment.