mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Correct parameter names in doc comments.
Fixes rdar://76254761.
This commit is contained in:
@@ -43,7 +43,7 @@ extension AsyncSequence {
|
||||
/// }
|
||||
/// // Prints: 1 2 3 4 Error: MyError()
|
||||
///
|
||||
/// - Parameter isIncluded: A error-throwing closure that takes an element of
|
||||
/// - Parameter predicate: A error-throwing closure that takes an element of
|
||||
/// the asynchronous sequence as its argument and returns a Boolean value
|
||||
/// that indicates whether to include the element in the modified sequence.
|
||||
/// - Returns: An asynchronous sequence that contains, in order, the elements
|
||||
|
||||
@@ -1467,7 +1467,7 @@ extension Collection {
|
||||
/// }
|
||||
/// // Prints "[10, 20, 30, 40]"
|
||||
///
|
||||
/// - Parameter end: The index of the last element to include in the
|
||||
/// - Parameter position: The index of the last element to include in the
|
||||
/// resulting subsequence. `end` must be a valid index of the collection
|
||||
/// that is not equal to the `endIndex` property.
|
||||
/// - Returns: A subsequence up to, and including, the `end` position.
|
||||
|
||||
Reference in New Issue
Block a user