diff --git a/Documentation/GoodPracticesForDesigningRecordTypes.md b/Documentation/GoodPracticesForDesigningRecordTypes.md index 7ebd92353..2ff2659c8 100644 --- a/Documentation/GoodPracticesForDesigningRecordTypes.md +++ b/Documentation/GoodPracticesForDesigningRecordTypes.md @@ -231,7 +231,7 @@ extension DerivableRequest where RowDecoder == Book { // A book is from a country if it can be // joined with an author from that country: // ---------------------------------v - return joining(required: Book.author.filter(country: authorCountry)) + self.joining(required: Book.author.filter(country: authorCountry)) } } diff --git a/README.md b/README.md index 37e95cdb4..517b59c10 100644 --- a/README.md +++ b/README.md @@ -3340,7 +3340,7 @@ struct Place: Codable { var coordinate: CLLocationCoordinate2D { get { - return CLLocationCoordinate2D( + CLLocationCoordinate2D( latitude: latitude, longitude: longitude) } @@ -3448,7 +3448,7 @@ struct Place: Encodable { var coordinate: CLLocationCoordinate2D { get { - return CLLocationCoordinate2D( + CLLocationCoordinate2D( latitude: latitude, longitude: longitude) } @@ -7393,7 +7393,7 @@ let futureCount: DatabaseFuture = try dbPool.writeWithoutTransaction { db i // <- not in a transaction here let futureCount = dbPool.concurrentRead { db - return try Player.fetchCount(db) + try Player.fetchCount(db) } return futureCount } @@ -7414,7 +7414,7 @@ try dbPool.writeWithoutTransaction { db in let futureCount = dbPool.concurrentRead { db // Guaranteed to be non-zero - return try Player.fetchCount(db) + try Player.fetchCount(db) } try Player.deleteAll(db)