From 5545c4c15859bfb424fa2735f3f888eb5e69e0c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 25 Sep 2015 09:05:53 +0200 Subject: [PATCH] README.md --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4b6a25e84..460a10f30 100644 --- a/README.md +++ b/README.md @@ -600,15 +600,13 @@ struct DatabaseTimestamp: DatabaseValueConvertible { // NSDate conversion // - // We consistently use the Swift nil to represent the database NULL: the - // date property is a non-optional NSDate, and the NSDate initializer is - // failable: + // Value types should consistently use the Swift nil to represent the + // database NULL: the date property is a non-optional NSDate. - /// The represented date let date: NSDate - /// Creates a DatabaseTimestamp from an NSDate. - /// The result is nil if and only if *date* is nil. + // As a convenience, the NSDate initializer accepts an optional NSDate, and + // is failable: the result is nil if and only if *date* is nil. init?(_ date: NSDate?) { guard let date = date else { return nil