From c851708b3d3336d76f5c645dce640a854c83caa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 8 Dec 2016 06:53:58 +0100 Subject: [PATCH] Documentation --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b2aa8f693..cab02b401 100644 --- a/README.md +++ b/README.md @@ -3268,7 +3268,7 @@ try request.fetchAll() // [Person] try request.fetchOne() // Person? ``` -You can (re)bind fetch requests with the `bound(to:)` method: +Bind fetch requests to a type T with the `bound(to:)` method: ```swift extension FetchRequest { @@ -3277,7 +3277,7 @@ extension FetchRequest { } ``` -To build such requests, you can create your own type that adopts the protocols, or use one of the four built-in concrete types: [QueryInterfaceRequest](#requests) that we already know, and SQLFetchRequest, AnyFetchRequest, AnyTypedFetchRequest: +**To build fetch requests**, you can create your own type that adopts the protocols, or use one of the four built-in concrete types: [QueryInterfaceRequest](#requests) that we already know, and SQLFetchRequest, AnyFetchRequest, AnyTypedFetchRequest: ```swift struct SQLFetchRequest : FetchRequest { @@ -3326,7 +3326,6 @@ You can now use the `myCustomRequest` method just like other [query interface re ```swift try Person.myCustomRequest().fetchAll(db) // [Person] -try Person.filter(...).fetchAll(db) // [Person] ``` Another, more advanced example: