Layout for Xcode doc reader

This commit is contained in:
Gwendal Roué committed 2023-02-22 07:17:53 +01:00
1 parent 734d911416
commit 5f013b6ee7
1 file changed
+4 -4
+4 -4
View File
@@ -62,8 +62,8 @@ On insertion, the record should get fresh `creationDate` and `modificationDate`.
```swift
extension Player: Encodable, MutablePersistableRecord {
/// Sets both `creationDate` and `modificationDate` to the transaction date,
/// if they are not set yet.
/// Sets both `creationDate` and `modificationDate` to the
/// transaction date, if they are not set yet.
mutating func willInsert(_ db: Database) throws {
if creationDate == nil {
creationDate = try db.transactionDate
@@ -316,8 +316,8 @@ extension Player: Encodable, MutablePersistableRecord {
id = inserted.rowID
}
/// Sets both `creationDate` and `modificationDate` to the transaction date,
/// if they are not set yet.
/// Sets both `creationDate` and `modificationDate` to the
/// transaction date, if they are not set yet.
mutating func willInsert(_ db: Database) throws {
if creationDate == nil {
creationDate = try db.transactionDate