Skip to content

Commit 77de8db

Browse files
authored
Fix typo in Base.binomial overflow message (#49204)
1 parent 9001ea0 commit 77de8db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/intfuncs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ Base.@assume_effects :terminates_locally function binomial(n::T, k::T) where T<:
11111111
while rr <= k
11121112
xt = div(widemul(x, nn), rr)
11131113
x = xt % T
1114-
x == xt || throw(OverflowError(LazyString("binomial(", n0, ", ", k0, " overflows")))
1114+
x == xt || throw(OverflowError(LazyString("binomial(", n0, ", ", k0, ") overflows")))
11151115
rr += one(T)
11161116
nn += one(T)
11171117
end

0 commit comments

Comments
 (0)