From 7a0895f872448dedcefb15dbc4a0480a216d72d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 17 Sep 2016 06:13:37 +0200 Subject: [PATCH] Documentation --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index b17df32d2..db522d7f3 100644 --- a/README.md +++ b/README.md @@ -1100,10 +1100,7 @@ let row = Row.fetchOne(db, "SELECT 'syrah'")! row.value(atIndex: 0) as String // "syrah" row.value(atIndex: 0) as Grape? // fatal error: could not convert "syrah" to Grape. row.value(atIndex: 0) as Grape // fatal error: could not convert "syrah" to Grape. - -let dbv: DatabaseValue = row.value(atIndex: 0) -String.fromDatabaseValue(dbv) // "Syrah" -Grape.fromDatabaseValue(dbv) // nil +Grape.fromDatabaseValue(row.value(atIndex: 0)) // nil ```