File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1458,7 +1458,8 @@ extension Collection {
1458
1458
/// Returns a subsequence from the start of the collection through the
1459
1459
/// specified position.
1460
1460
///
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.
1462
1463
/// The following example searches for the index of the number `40` in an
1463
1464
/// array of integers, and then prints the prefix of the array up to, and
1464
1465
/// including, that index:
@@ -1481,7 +1482,7 @@ extension Collection {
1481
1482
/// - Parameter position: The index of the last element to include in the
1482
1483
/// resulting subsequence. `position` must be a valid index of the collection
1483
1484
/// 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.
1485
1486
///
1486
1487
/// - Complexity: O(1)
1487
1488
@inlinable
You can’t perform that action at this time.
0 commit comments