Skip to content

Commit f1dfaaa

Browse files
committed
Fix mentions of nonexistent 'end' parameter.
Follow-on to commit 4c82b77.
1 parent e6cbf54 commit f1dfaaa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stdlib/public/core/Collection.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,8 @@ extension Collection {
14581458
/// Returns a subsequence from the start of the collection through the
14591459
/// specified position.
14601460
///
1461-
/// The resulting subsequence *includes* the element at the position `end`.
1461+
/// The resulting subsequence *includes* the element at the position
1462+
/// specified by the `through` parameter.
14621463
/// The following example searches for the index of the number `40` in an
14631464
/// array of integers, and then prints the prefix of the array up to, and
14641465
/// including, that index:
@@ -1481,7 +1482,7 @@ extension Collection {
14811482
/// - Parameter position: The index of the last element to include in the
14821483
/// resulting subsequence. `position` must be a valid index of the collection
14831484
/// that is not equal to the `endIndex` property.
1484-
/// - Returns: A subsequence up to, and including, the `end` position.
1485+
/// - Returns: A subsequence up to, and including, the given position.
14851486
///
14861487
/// - Complexity: O(1)
14871488
@inlinable

0 commit comments

Comments
 (0)