We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c7ce23 commit 47e0b13Copy full SHA for 47e0b13
Swift2.md
@@ -444,7 +444,8 @@ p. 451: A few changes in Swift 2 and OS X 10.11 affect the implementation of `Ne
444
These three changes combine to yield the following implementation of `selectTabAtIndex(_:)`:
445
446
func selectTabAtIndex(index: Int) {
447
- assert((0..<childViewControllers.count).contains(index), "index out of range")
+ let range = 0..<childViewControllers.count
448
+ assert(range.contains(index), "index out of range")
449
for (i, button) in buttons.enumerate() {
450
button.state = (index == i) ? NSOnState : NSOffState
451
}
0 commit comments