summaryrefslogtreecommitdiff
path: root/library/src/compute
diff options
context:
space:
mode:
authorMarek Barvíř <barvirm@gmail.com>2023-04-18 11:19:09 +0200
committerGitHub <noreply@github.com>2023-04-18 11:19:09 +0200
commit56673bcdf5a8be0f89a3781a5ce392736823dc44 (patch)
tree03cbe32d6b1334bc17639b15f91b6d81b6a6e594 /library/src/compute
parent213502721961854b30a4971b0197495145fbbc75 (diff)
Clippy fixes (#856)
Diffstat (limited to 'library/src/compute')
-rw-r--r--library/src/compute/calc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/compute/calc.rs b/library/src/compute/calc.rs
index 35e7ddb8..9ab18dbf 100644
--- a/library/src/compute/calc.rs
+++ b/library/src/compute/calc.rs
@@ -467,7 +467,7 @@ pub fn perm(
numbers: u64,
) -> Value {
// By convention.
- if base + 1 <= numbers {
+ if base < numbers {
return Ok(Value::Int(0));
}