From 10d5e85a99e7f0daedccd5a5099bc457f58ea4e4 Mon Sep 17 00:00:00 2001 From: Madalin Mamuleanu Date: Tue, 19 Jun 2018 17:12:28 +0300 Subject: [PATCH] Fixed one of Executing Arbitrary SQL examples: - corrected method name - added : instead of = --- Documentation/Index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/Index.md b/Documentation/Index.md index 56c8c429..9aa84f4a 100644 --- a/Documentation/Index.md +++ b/Documentation/Index.md @@ -1854,8 +1854,8 @@ using the following functions. ```swift let stmt = try db.prepare("SELECT id, email FROM users") for row in stmt { - for (index, name) in stmt.columnNames.enumerate() { - print ("\(name)=\(row[index]!)") + for (index, name) in stmt.columnNames.enumerated() { + print ("\(name):\(row[index]!)") // id: Optional(1), email: Optional("alice@mac.com") } }