From 4f26c366b76f4f28dee3cf720d9eea67a0a0d269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 1 Oct 2015 07:18:16 +0200 Subject: [PATCH] README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e26fbbc35..5289c2973 100644 --- a/README.md +++ b/README.md @@ -475,11 +475,11 @@ Yet, when extracting NSData from a row, **you have the opportunity to save memor ```swift // When the "data" column is know to be there: -let notCopiedData = row.dataNoCopy(named: "data") // NSData? +let notCopiedData = row.dataNoCopy(named: "data") // NSData? // When the column `data` may not be there: -if let databaseValue = row["data"] { - let notCopiedData = databaseValue.dataNoCopy // NSData? +if row.hasColumn("data") { + let notCopiedData = row.dataNoCopy(named: "data") // NSData? } ```