Skip to content

Commit ba713e3

Browse files
committed
fix error message
1 parent 279ed1a commit ba713e3

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
@@ -180,7 +180,7 @@ macro kwmethod(fexpr)
180180
f = fcall.args[1]
181181

182182
length(fcall.args) >= 2 && fcall.args[2] isa Expr && fcall.args[2].head == :parameters ||
183-
error("@kwdef requires functions specify a keyword block.\nUse @kwdef `f(args...;)` to specify no keywords.")
183+
error("@kwmethod requires functions specify a keyword block.\nUse @kwmethod `f(args...;)` to specify no keywords.")
184184

185185
kwargs = fcall.args[2].args
186186
fargs = fcall.args[3:end]

0 commit comments

Comments
 (0)