From c29578eaa1eddfa724a32f1d010125643be56a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 3 Jul 2015 08:24:01 +0200 Subject: [PATCH] README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8dff09b8e..4e8d3fa94 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ let rows = dbQueue.inDatabase { db in } ``` -**Row queries are lazy**. They are Swift *sequences*, that iterates SQLite results as it is consumed. +**A row sequence is lazy**. It iterates SQLite results as it is consumed. You will get a *fatal error* if you iterate such a sequence out of the database queue: @@ -126,7 +126,7 @@ for row in rowSequence { } ``` -Avoid those fatal errors by consuming the sequence in an Array: +Avoid those fatal errors by consuming the sequence in an Array before using it outside of a database queue: ```swift let rows = dbQueue.inDatabase { db in