Skip to content

Commit 16a7cc3

Browse files
committed
Correct parameter names in doc comments.
Fixes rdar://76254761. (cherry picked from commit 36832a8)
1 parent 7dde4ea commit 16a7cc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/Concurrency/AsyncThrowingPrefixWhileSequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extension AsyncSequence {
4343
/// }
4444
/// // Prints: 1 2 3 4 Error: MyError()
4545
///
46-
/// - Parameter isIncluded: A error-throwing closure that takes an element of
46+
/// - Parameter predicate: A error-throwing closure that takes an element of
4747
/// the asynchronous sequence as its argument and returns a Boolean value
4848
/// that indicates whether to include the element in the modified sequence.
4949
/// - Returns: An asynchronous sequence that contains, in order, the elements

stdlib/public/core/Collection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ extension Collection {
14781478
/// }
14791479
/// // Prints "[10, 20, 30, 40]"
14801480
///
1481-
/// - Parameter end: The index of the last element to include in the
1481+
/// - Parameter position: The index of the last element to include in the
14821482
/// resulting subsequence. `end` must be a valid index of the collection
14831483
/// that is not equal to the `endIndex` property.
14841484
/// - Returns: A subsequence up to, and including, the `end` position.

0 commit comments

Comments
 (0)