mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Name and label changes for closure parameters (for review only) (#2981)"
This reverts commit 18406900ba.
This commit is contained in:
@@ -476,7 +476,7 @@ public protocol ExpressibleByStringLiteral
|
||||
/// array as a parameter:
|
||||
///
|
||||
/// func sum(values: [Int]) -> Int {
|
||||
/// return values.reduce(0, +)
|
||||
/// return values.reduce(0, combine: +)
|
||||
/// }
|
||||
///
|
||||
/// let sumOfFour = sum([5, 10, 15, 20])
|
||||
|
||||
Reference in New Issue
Block a user