mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-27 04:34:21 +00:00
Fix mistake where perm was used in example instead of combo (#10)
This commit is contained in:
1 parent
60d653f008
commit
7188edf9c0
1 file changed
+1
-1
@@ -29,7 +29,7 @@ collection are always treated as separate values in the resulting combinations:
|
||||
```swift
|
||||
let numbers2 = [20, 10, 10]
|
||||
for combo in numbers2.combinations(ofCount: 2) {
|
||||
print(perm)
|
||||
print(combo)
|
||||
}
|
||||
// [20, 10]
|
||||
// [20, 10]
|
||||
|
||||
Reference in new issue
Block a user