Correct parameter names in doc comments.

Fixes rdar://76254761.
This commit is contained in:
Alex Martini
2021-06-04 16:12:01 -07:00
parent 70555e0930
commit 36832a8d47
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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.