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 {
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
You can’t perform that action at this time.
0 commit comments