From 52659c19c0fdced3a119cf2362647c2e60669605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Wed, 28 Oct 2015 09:03:54 +0100 Subject: [PATCH] README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index c29faac89..87b20eb94 100644 --- a/README.md +++ b/README.md @@ -778,8 +778,7 @@ struct DatabaseTimestamp: DatabaseValueConvertible { /// Returns an instance initialized from *databaseValue*, if possible. static func fromDatabaseValue(databaseValue: DatabaseValue) -> DatabaseTimestamp? { - // Double itself adopts DatabaseValueConvertible. So let's avoid - // handling the raw DatabaseValue, and use built-in Double conversion: + // Double itself adopts DatabaseValueConvertible: guard let timeInterval = Double.fromDatabaseValue(databaseValue) else { // No Double, no NSDate! return nil