Skip to content

Commit a8ffabc

Browse files
oxinaboxmzgubic
andcommitted
Update docs/src/opting_out_of_rules.md
Co-authored-by: Miha Zgubic <[email protected]>
1 parent c542c2f commit a8ffabc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/opting_out_of_rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The Julia compiler will specialize based on inferring the return type of `rrule`
7878
The body of this method doesn't matter, what matters is that it is a method-table.
7979
A simple thing you can do with this is not support opting out.
8080
To do this, filter all methods from the `rrule`/`frule` method table that also occur in the `no_frule`/`no_rrule` table.
81-
This will thus avoid ever hitting an `rrule`/`frule` that returns `nothing` and thus makes your library error.
81+
This will thus avoid ever hitting an `rrule`/`frule` that returns `nothing` (and thus prevents your library from erroring).
8282
This is easily done, though it does mean ignoring the user's stated desire to opt out of the rule.
8383

8484
More complex you can use this to generate code that triggers your AD.

0 commit comments

Comments
 (0)