Skip to content

Commit 0b3c10b

Browse files
committed
fix typos in diffrule docs
1 parent 1b1de01 commit 0b3c10b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rules.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Define a new differentiation rule for the function `f` and the given arguments,
1313
be treated as bindings to Julia expressions.
1414
1515
The RHS should be a function call with a non-splatted argument list, and the LHS should be
16-
the derivative expression, or in the `n`-ary case, and `n`-tuple of expressions where the
17-
`i`th expression is the derivative of `f` w.r.t the `i`th argument. Arguments should
16+
the derivative expression, or in the `n`-ary case, an `n`-tuple of expressions where the
17+
`i`th expression is the derivative of `f` w.r.t the `i`th argument. Arguments should be
1818
interpolated wherever they are used on the RHS.
1919
20-
This rule is purely symbolic - no type annotations should be used.
20+
Note that differentiation rules are purely symbolic, so no type annotations should be used.
2121
2222
Examples:
2323
@@ -67,7 +67,7 @@ diffrule(f::Symbol, args...) = DiffRule{f}(args...)
6767
"""
6868
hasdiffrule(f::Symbol, arity::Int)
6969
70-
Return `true` if a differentiation rule is defined for `f` and `arity`, or returns `false`
70+
Return `true` if a differentiation rule is defined for `f` and `arity`, or return `false`
7171
otherwise.
7272
7373
Here, `arity` refers to the number of arguments accepted by `f`.

0 commit comments

Comments
 (0)