We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 822b46b commit dcf4054Copy full SHA for dcf4054
Sources/Algorithms/Combinations.swift
@@ -239,8 +239,8 @@ extension Collection {
239
/// // [10, 20, 30, 40]
240
///
241
/// 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.
+ /// empty array. The given range is limited to `0...base.count`. If the
+ /// limited range is empty, the resulting sequence has no elements.
244
245
/// - Parameter kRange: The range of numbers of elements to include in each
246
/// combination.
0 commit comments