diff --git a/Sources/Meow/Updatable.swift b/Sources/Meow/Updatable.swift index 36179e5..bc54489 100644 --- a/Sources/Meow/Updatable.swift +++ b/Sources/Meow/Updatable.swift @@ -80,7 +80,7 @@ extension WritableKeyPath: OptionalKeyPath where Value: ExpressibleByNilLiteral public extension Decoder { /// - returns: An array containing the key paths that were updated - public func update(_ instance: T, withAllowedKeyPaths keyPaths: [MeowWritableKeyPath]) throws -> [PartialKeyPath] { + public func update(_ instance: T, withAllowedKeyPaths keyPaths: [MeowWritableKeyPath]) throws -> [PartialKeyPath] { let container = try self.container(keyedBy: UpdateCodingKey.self) // must pass as inout to the KeyPath, hence the var