Skip to content

Commit 7e80fef

Browse files
authored
Further docstring fixes (#969)
1 parent 9411b6f commit 7e80fef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

DifferentiationInterface/src/compat.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ macro public(ex)
55
elseif Base.isexpr(ex, :tuple)
66
ex.args
77
else
8-
error("something informative")
8+
error("Expected a symbol or a tuple of symbols, got $(repr(ex))")
99
end
1010
esc(Expr(:public, args...))
1111
else

DifferentiationInterface/src/utils/traits.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pushforward_performance(::ReverseMode) = PushforwardSlow()
7575
pushforward_performance(::SymbolicMode) = PushforwardFast()
7676

7777
function pushforward_performance(backend::Union{AutoSparse, SecondOrder})
78-
throw(ArgumentError("Pushforward performance not defined for $backend`."))
78+
throw(ArgumentError("Pushforward performance not defined for `$backend`."))
7979
end
8080

8181
## Pullback
@@ -108,7 +108,7 @@ pullback_performance(::ReverseMode) = PullbackFast()
108108
pullback_performance(::SymbolicMode) = PullbackFast()
109109

110110
function pullback_performance(backend::Union{AutoSparse, SecondOrder})
111-
throw(ArgumentError("Pullback performance not defined for $backend`."))
111+
throw(ArgumentError("Pullback performance not defined for `$backend`."))
112112
end
113113

114114
## HVP
@@ -170,7 +170,7 @@ function hvp_mode(ba::SecondOrder)
170170
end
171171

172172
function hvp_mode(backend::AutoSparse)
173-
throw(ArgumentError("HVP mode not defined for $backend`."))
173+
throw(ArgumentError("HVP mode not defined for `$backend`."))
174174
end
175175

176176
## Inner prep

0 commit comments

Comments
 (0)