Skip to content

Commit 8df2d34

Browse files
committed
Address review comment.
1 parent 4fe8dda commit 8df2d34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/DifferentiableProgramming.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1340,8 +1340,8 @@ cannot be included as differentiable variables (due to either lacking a
13401340
conformance to `Differentiable` or being a non-`class`-bound `let` property) be
13411341
marked with `@noDerivative`. When a property is not included as a differentiable
13421342
variable and is not marked with `@noDerivative`, the compiler produces a warning
1343-
as asking the user to make the exclusion explicit along with fix-it suggestions
1344-
in IDEs.
1343+
asking the user to make the exclusion explicit along with fix-it suggestions in
1344+
IDEs.
13451345

13461346
```swift
13471347
struct Foo<T: Differentiable, U: Differentiable>: @memberwise Differentiable {
@@ -1389,7 +1389,7 @@ Method `move(along:)` will not be synthesized because a default implementation
13891389
already exists.
13901390

13911391
```swift
1392-
struct Point<T: Real>: @memberwise Differentiable, AdditiveArithmetic {
1392+
struct Point<T: Real>: @memberwise Differentiable, @memberwise AdditiveArithmetic {
13931393
// `x` and `y` are the "differentiation properties".
13941394
var x, y: T
13951395

0 commit comments

Comments
 (0)