diff --git a/README.md b/README.md index a30f86a86..357ffb74f 100644 --- a/README.md +++ b/README.md @@ -63,9 +63,13 @@ struct PointOfInterest { try dbQueue.inDatabase { db in // INSERT INTO "pointOfInterests" ... - var berlin = PointOfInterest(id: nil, title: "Berlin", favorite: false, coordinate: CLLocationCoordinate2DMake(52.52437, 13.41053)) + var berlin = PointOfInterest( + id: nil, + title: "Berlin", + favorite: false, + coordinate: CLLocationCoordinate2DMake(52.52437, 13.41053)) try berlin.insert(db) - print(berlin.id) + print(berlin.id) // some value // UPDATE "pointOfInterests" ... berlin.favorite = true