mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Update docs/DifferentiableProgrammingImplementation.md
Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user