Skip to content

Commit b4e4ef1

Browse files
authored
Update dim func follow syntax change of swift 3
1 parent 1ace7e8 commit b4e4ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Array2D/README.markdown

Lines changed: 1 addition & 1 deletion
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)