Skip to content

Commit 36832a8

Browse files
committed
Correct parameter names in doc comments.
Fixes rdar://76254761.
1 parent 70555e0 commit 36832a8

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
@@ -1467,7 +1467,7 @@ extension Collection {
14671467
/// }
14681468
/// // Prints "[10, 20, 30, 40]"
14691469
///
1470-
/// - Parameter end: The index of the last element to include in the
1470+
/// - Parameter position: The index of the last element to include in the
14711471
/// resulting subsequence. `end` must be a valid index of the collection
14721472
/// that is not equal to the `endIndex` property.
14731473
/// - Returns: A subsequence up to, and including, the `end` position.

0 commit comments

Comments
 (0)