Skip to content

Commit

Permalink
Update staged.jl
Browse files Browse the repository at this point in the history
get rid of deprecated syntax warning
  • Loading branch information
jakebolewski committed Jun 3, 2014
1 parent 421c0f4 commit 2a52a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/staged.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ macro staged(fdef)
error("@staged: expected method definition")
end
fname = fdef.args[1].args[1]
argspec = fdef.args[1].args[2:]
argspec = fdef.args[1].args[2:end]
argnames = map(x->(isa(x,Expr) ? x.args[1] : x), argspec)
qargnames = map(x->Expr(:quote,x), argnames)
fbody = fdef.args[2]
Expand Down

0 comments on commit 2a52a85

Please sign in to comment.