Skip to content

Commit 00b959d

Browse files
committed
strip whitespace
1 parent bb2d463 commit 00b959d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/rule_definition_tools.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ propagator_name(fname::QuoteNode, propname::Symbol) = propagator_name(fname.valu
254254
@non_differentiable(signature_expression)
255255
256256
A helper to make it easier to declare that a method is not not differentiable.
257-
This is a short-hand for defining an [`frule`](@ref) and [`rrule`](@ref) that
257+
This is a short-hand for defining an [`frule`](@ref) and [`rrule`](@ref) that
258258
return [`DoesNotExist()`](@ref) for all partials (except for the function `s̄elf`-partial
259259
itself which is `NO_FIELDS`)
260260
@@ -296,7 +296,7 @@ macro non_differentiable(sig_expr)
296296

297297
unconstrained_args = _unconstrain.(constrained_args)
298298
primal_invoke = Expr(:call, esc(primal_name), esc.(unconstrained_args)...)
299-
299+
300300
quote
301301
$(_nondiff_frule_expr(primal_sig_parts, primal_invoke))
302302
$(_nondiff_rrule_expr(primal_sig_parts, primal_invoke))
@@ -330,7 +330,7 @@ end
330330

331331

332332
###########
333-
# Helpers
333+
# Helpers
334334

335335
"""
336336
_isvararg(expr)

test/rule_definition_tools.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Along same lines as `@test_throws` but to test if a macro throw an exception when it is
2+
Along same lines as `@test_throws` but to test if a macro throw an exception when it is
33
expanded.
44
"""
55
macro test_macro_throws(err_expr, expr)
@@ -17,7 +17,7 @@ macro test_macro_throws(err_expr, expr)
1717
@test_throws $(esc(err_expr)) ($(Meta.quot(expr)); throw(err))
1818
else
1919
@test_throws $(esc(err_expr)) $(Meta.quot(expr))
20-
end
20+
end
2121
end
2222
end
2323

@@ -72,7 +72,7 @@ end
7272

7373
@test rrule(pointy_identity, 2.0) == nothing
7474
end
75-
75+
7676
@testset "Not supported (Yet)" begin
7777
# Varargs are not supported
7878
@test_macro_throws ErrorException @non_differentiable vararg1(xs...)

0 commit comments

Comments
 (0)