From ce594845128bb1d73a7d58d56cce85141db05b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Wed, 22 Jul 2015 20:06:41 +0200 Subject: [PATCH] README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2a6e2a06b..818cc8f9b 100644 --- a/README.md +++ b/README.md @@ -524,8 +524,8 @@ struct DatabaseTimestamp: DatabaseValueConvertible { /// Create an instance initialized to `databaseValue`. init?(databaseValue: DatabaseValue) { - // Why handle the raw DatabaseValue when GRDB built-in Double - // conversion does all the job for us? + // Double itself adopts DatabaseValueConvertible. So let's avoid + // handling the raw DatabaseValue, and use built-in Double conversion: guard let timeInterval = Double(databaseValue: databaseValue) else { return nil }