Browse Source

Make notification example code Swift 1.2 compliant

Aditya Trivedi 10 years ago
parent
commit
7ff84c845e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -43,7 +43,7 @@ and
 
     func reachabilityChanged(note: NSNotification) {
 
-        let reachability = note.object as Reachability
+        let reachability = note.object as! Reachability
 
         if reachability.isReachable() {
             if reachability.isReachableViaWiFi() {