Skip to content

Commit 99bfa7d

Browse files
committed
Fix makedocs test with manual default arg method
1 parent 36ace54 commit 99bfa7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/channels.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ Close a channel. An exception (optionally given by `excp`), is thrown by:
183183
* [`put!`](@ref) on a closed channel.
184184
* [`take!`](@ref) and [`fetch`](@ref) on an empty, closed channel.
185185
"""
186-
function close(c::Channel, @nospecialize(excp::Exception=closed_exception()))
186+
close(c::Channel) = close(c, closed_exception()) # nospecialize on default arg seems to confuse makedocs
187+
function close(c::Channel, @nospecialize(excp::Exception))
187188
lock(c)
188189
try
189190
c.excp = excp

0 commit comments

Comments
 (0)