Skip to content

Commit dcf4054

Browse files
committed
Clarifying comment about behavior of limited range
1 parent 822b46b commit dcf4054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Algorithms/Combinations.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ extension Collection {
239239
/// // [10, 20, 30, 40]
240240
///
241241
/// If `kRange` is `0...0`, the resulting sequence has exactly one element, an
242-
/// empty array. If `k.upperBound` is greater than the number of elements in
243-
/// this sequence, the resulting sequence has no elements.
242+
/// empty array. The given range is limited to `0...base.count`. If the
243+
/// limited range is empty, the resulting sequence has no elements.
244244
///
245245
/// - Parameter kRange: The range of numbers of elements to include in each
246246
/// combination.

0 commit comments

Comments
 (0)