Precise documentation

This commit is contained in:
Gwendal Roué committed 2021-01-28 08:10:30 +01:00
1 parent f4a32edbb9
commit d7dfb4c2ed
2 files changed
+2 -2

No files matched your search

@@ -55,7 +55,7 @@ struct AppDatabase {
extension AppDatabase {
/// Saves (inserts or updates) a player. When the method returns, the
/// player id is not nil.
/// player is present in the database, and its id is not nil.
func savePlayer(_ player: inout Player) throws {
try dbWriter.write { db in
try player.save(db)
@@ -54,7 +54,7 @@ final class AppDatabase {
extension AppDatabase {
/// Saves (inserts or updates) a player. When the method returns, the
/// player id is not nil.
/// player is present in the database, and its id is not nil.
func savePlayer(_ player: inout Player) throws {
try dbWriter.write { db in
try player.save(db)