Skip to content

Commit 274cd45

Browse files
authored
Fix check mutation to return nothing (#145)
1 parent 14fb6ce commit 274cd45

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

DifferentiationInterface/docs/src/backends.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CollapsedDocStrings = true
77
using DifferentiationInterface
88
using DifferentiationInterface: backend_string
99
import Markdown
10-
import Enzyme, FastDifferentiation, FiniteDiff, FiniteDifferences, ForwardDiff, PolyesterForwardDiff, ReverseDiff, Tracker, Zygote
10+
import Diffractor, Enzyme, FastDifferentiation, FiniteDiff, FiniteDifferences, ForwardDiff, PolyesterForwardDiff, ReverseDiff, Tapir, Tracker, Zygote
1111
1212
function all_backends()
1313
return [

DifferentiationInterface/src/backends.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ function check_available(backend::AbstractADType)
2020
end
2121
end
2222

23-
square!(y, x) = y .= x .^ 2
23+
function square!(y, x)
24+
y .= x .^ 2
25+
return nothing
26+
end
2427

2528
"""
2629
check_mutation(backend)

0 commit comments

Comments
 (0)