Skip to content

Commit

Permalink
Update Identified.swift
Browse files Browse the repository at this point in the history
Remove unnecessary comments.
  • Loading branch information
mbrandonw authored May 29, 2024
1 parent c5903fb commit cc86299
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sources/IdentifiedCollections/Identified/Identified.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ public struct Identified<ID: Hashable, Value>: Identifiable {
self.init(value, id: value[keyPath: id])
}

/// Returns the resulting value of a given writeable key path.
public subscript<Subject>(
dynamicMember keyPath: WritableKeyPath<Value, Subject>
) -> Subject {
get { self.value[keyPath: keyPath] }
set { self.value[keyPath: keyPath] = newValue }
}

/// Returns the resulting value of a given key path.
public subscript<Subject>(
dynamicMember keyPath: KeyPath<Value, Subject>
) -> Subject {
Expand Down

0 comments on commit cc86299

Please sign in to comment.