Skip to content

Commit 1449b08

Browse files
committed
Fix doctests
1 parent e1c8cfd commit 1449b08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ julia> first(DiffRules.diffrules())
146146
If you call `diffrules()`, only rules for Base, SpecialFunctions, and
147147
NaNMath are returned but no rules for LogExpFunctions:
148148
```jldoctest
149-
julia> any(M in :LogExpFunctions for (M, _, _) in DiffRules.diffrules())
149+
julia> any(M === :LogExpFunctions for (M, _, _) in DiffRules.diffrules())
150150
false
151151
```
152152
153153
If you set `filter_modules=nothing`, all rules defined in DiffRules are
154154
returned and in particular also rules for LogExpFunctions:
155155
```jldoctest
156156
julia> any(
157-
M in :LogExpFunctions
157+
M === :LogExpFunctions
158158
for (M, _, _) in DiffRules.diffrules(; filter_modules=nothing)
159159
)
160160
true

0 commit comments

Comments
 (0)