From e58b3b01316f74890a044ee264f501a612ac19b3 Mon Sep 17 00:00:00 2001 From: John Rommel Estropia Date: Thu, 11 Feb 2016 09:25:32 +0900 Subject: [PATCH] fixed some typos in the README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 593270a..229bf40 100644 --- a/README.md +++ b/README.md @@ -259,7 +259,7 @@ class MyViewController: UIViewController { So far we have only seen `addSQLiteStoreAndWait(...)` used to initialize our persistent store. As the method name's "AndWait" suffix suggests, this method blocks so it should not do long tasks such as store migrations (in fact CoreStore won't even attempt to, and any model mismatch will be reported as an error). If migrations are expected, the asynchronous variant `addSQLiteStore(... completion:)` method should be used instead: ```swift do { - let progress: NSProgress = try dataStack.addSQLiteStore( + let progress: NSProgress? = try dataStack.addSQLiteStore( fileName: "MyStore.sqlite", configuration: "Config2", completion: { (result) -> Void in @@ -566,7 +566,7 @@ CoreStore.beginAsynchronous { (transaction) -> Void in From(MyPersonEntity), Where("name", isEqualTo: "Jane Smith") ) - jane.friends = NSSet(array: transactin.fetchExisting(peopleIDs)!) + jane.friends = NSSet(array: transaction.fetchExisting(peopleIDs)!) // ... } ```