Skip to content

Commit 49b3fee

Browse files
committed
fix error message
1 parent 8c1746f commit 49b3fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KeywordDispatch.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ macro kwdispatch(fexpr)
103103
f = fcall.args[1]
104104
fargs = fcall.args[2:end]
105105
if length(fargs) >= 1 && fargs[1] isa Expr && fargs[1].head == :parameters
106-
error("keyword arguments should only appear in @kwdef expressions")
106+
error("keyword arguments should only appear in @kwdispatch expressions")
107107
end
108108
f = argmeth(f)
109109

0 commit comments

Comments
 (0)