From cc136922e557ddbb03cde0875a9575cfc1028f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 12 Apr 2018 14:07:38 +0200 Subject: [PATCH] Typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ed37217a8..a433ec811 100644 --- a/README.md +++ b/README.md @@ -1309,7 +1309,7 @@ If an error is thrown within the transaction body, the transaction is rollbacked If you want to insert a transaction between other database statements, you can use the Database.inTransaction() function, or even raw SQL statements: ```swift -dbPool.writeWithoutTransaction { db in // or dbQueue.inDatabase { ... } +try dbPool.writeWithoutTransaction { db in // or dbQueue.inDatabase { ... } try db.inTransaction { ... return .commit