Explorar o código

Merge pull request #206 from tnantoka/fix-closures-example-readme

 Use isReachableViaWiFi instead of isReachableViaWiFi() on README.md
Ashley Mills %!s(int64=8) %!d(string=hai) anos
pai
achega
20a5075cf6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -141,7 +141,7 @@ reachability.whenReachable = { reachability in
     // this is called on a background thread, but UI updates must
     // be on the main thread, like this:
     DispatchQueue.main.async {
-        if reachability.isReachableViaWiFi() {
+        if reachability.isReachableViaWiFi {
             print("Reachable via WiFi")
         } else {
             print("Reachable via Cellular")