fix: correct PersonalDictionary init parameter syntax
Use 'version: Int = 1' instead of invalid 'version: 1' so Swift synthesizes the default initializer and PersonalDictionary() compiles. Co-authored-by: Rocky <hkgood@users.noreply.github.com>
This commit is contained in:
@@ -23,7 +23,7 @@ public struct PersonalDictionary: Codable, Sendable, Equatable {
|
|||||||
public var entries: [Entry]
|
public var entries: [Entry]
|
||||||
public var version: Int
|
public var version: Int
|
||||||
|
|
||||||
public init(entries: [Entry] = [], version: 1) {
|
public init(entries: [Entry] = [], version: Int = 1) {
|
||||||
self.entries = entries
|
self.entries = entries
|
||||||
self.version = version
|
self.version = version
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user