aboutsummaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
Diffstat (limited to 'core/math')
-rw-r--r--core/math/math.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/math.odin b/core/math/math.odin
index 0e21afa67..934842318 100644
--- a/core/math/math.odin
+++ b/core/math/math.odin
@@ -1271,7 +1271,7 @@ binomial :: proc "contextless" (n, k: int) -> int {
}
b := n
- for i in 2..<k {
+ for i in 2..=k {
b = (b * (n+1-i))/i
}
return b