Replace C-style for loop with Swift-style for-in loop

This commit is contained in:
53nigen 2016-01-06 16:35:01 +09:00
parent 61cbebeef0
commit 4dccf08bfd
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ extension RxTest {
func tearDownActions() {
#if TRACE_RESOURCES
// give 5 sec to clean up resources
for var i = 0; i < 10; ++i {
for i in 0..<10 {
if self.startResourceCount < resourceCount {
// main schedulers need to finish work
NSRunLoop.currentRunLoop().runMode(NSDefaultRunLoopMode, beforeDate: NSDate(timeIntervalSinceNow: 0.05))