Skip to content

Commit 74c4ae8

Browse files
authored
Merge pull request kodecocodes#393 from hprobotic/master
Update syntax for Array2D
2 parents c0dbd74 + b4e4ef1 commit 74c4ae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Array2D/README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var cookies = [[Int]](repeating: [Int](repeating: 0, count: 7), count: 9)
3636
but that's just ugly. To be fair, you can hide the ugliness in a helper function:
3737

3838
```swift
39-
func dim<T>(count: Int, _ value: T) -> [T] {
39+
func dim<T>(_ count: Int, _ value: T) -> [T] {
4040
return [T](repeating: value, count: count)
4141
}
4242
```

0 commit comments

Comments
 (0)