Skip to content

Commit b43c8a6

Browse files
authored
style tweaks
1 parent 2ead553 commit b43c8a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rule_definition_tools.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,9 @@ end
325325
"changes `f(x,y)` into `f(x,y; kwargs....)`"
326326
function _with_kwargs_expr(call_expr::Expr)
327327
@assert isexpr(call_expr, :call)
328-
Expr(:call, call_expr.args[1], Expr(:parameters, :(kwargs...)),
329-
call_expr.args[2:end]...)
328+
return Expr(
329+
:call, call_expr.args[1], Expr(:parameters, :(kwargs...)), call_expr.args[2:end]...
330+
)
330331
end
331332

332333
function _nondiff_frule_expr(primal_sig_parts, primal_invoke)
@@ -359,8 +360,7 @@ function _nondiff_rrule_expr(primal_sig_parts, primal_invoke)
359360
Expr(:tuple, DoesNotExist(), Expr(:(...), tup_expr))
360361
)
361362
return esc(quote
362-
# Manully defined kw version to save compiler work.
363-
# See rules.jl
363+
# Manually defined kw version to save compiler work. See explanation in rules.jl
364364
function (::Core.kwftype(typeof(rrule)))(kwargs::Any, rrule::typeof(ChainRulesCore.rrule), $(primal_sig_parts...))
365365
return ($(_with_kwargs_expr(primal_invoke)), $pullback_expr)
366366
end

0 commit comments

Comments
 (0)