Update docs/DifferentiableProgrammingImplementation.md

Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>
This commit is contained in:
Philip Turner
2021-12-07 03:18:08 -08:00
committed by GitHub
parent 8f50c441b0
commit a3d98068be

View File

@@ -225,7 +225,7 @@ func f(_ x: @differentiable (Float) -> Float) {}
// Calling `f` with a function declaration reference triggers an implicit
// `@differentiable` function type conversion.
func identity(_ x: Float) -> Float { x }
silly(identity)
f(identity)
// Calling `foo` with a closure literal also triggers an implicit
// `@differentiable` function type conversion.