Quellcode durchsuchen

Make notification example code Swift 1.2 compliant

Aditya Trivedi vor 10 Jahren
Ursprung
Commit
7ff84c845e
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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() {