From b283c807769e7546759f8317ff7be2f235ffc26e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 17 Jun 2017 20:06:38 +0200 Subject: [PATCH] Documentation --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b33735c8c..064c1281d 100644 --- a/README.md +++ b/README.md @@ -4253,9 +4253,9 @@ See also [TableChangeObserver.swift](https://gist.github.com/groue/2e21172719e63 #### Filtering Database Events -**Transaction observers can avoid being notified of some database changes they are not interested in.** +**Transaction observers can avoid being notified of database changes they are not interested in.** -The filtering happens in the `observes(eventsOfKind:)` method, which tells whether the observer is interested in specific kinds of changes, or not. For example, here is how an observer can focus on the changes that happen on the "persons" database table: +The filtering happens in the `observes(eventsOfKind:)` method, which tells whether the observer wants notification of specific kinds of changes, or not. For example, here is how an observer can focus on the changes that happen on the "persons" database table: ```swift class PersonObserver: TransactionObserver { @@ -4265,8 +4265,8 @@ class PersonObserver: TransactionObserver { } func databaseDidChange(with event: DatabaseEvent) { - // When this method is called, the observer is guaranteed - // that the "persons" table has been modified. + // This method is only called for changes that happen to + // the "persons" table. } } ```