From 4dccf08bfd776f7dea82c6d77e6288a84101d2c7 Mon Sep 17 00:00:00 2001 From: 53nigen Date: Wed, 6 Jan 2016 16:35:01 +0900 Subject: [PATCH] Replace C-style for loop with Swift-style for-in loop --- Tests/RxTest.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/RxTest.swift b/Tests/RxTest.swift index fcb40aeb..5ee066be 100644 --- a/Tests/RxTest.swift +++ b/Tests/RxTest.swift @@ -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))