Skip to content

Commit 9fb8f59

Browse files
Clarified a comment in isTuple().
1 parent ebdd00c commit 9fb8f59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public class AnyKeyPath: Hashable, _AppendKeyPath {
180180
// TODO: Find a quicker way to see if this is a tuple.
181181
internal func isTuple(_ item: Any) -> Bool {
182182
// Unwraps type information if possible.
183-
// Otherwise, everything the Mirror sees would be "Optional<Any.Type>".
183+
// Otherwise, everything the Mirror handling "item" sees would be "Optional<Any.Type>".
184184
func unwrapType<T>(_ any: T) -> Any {
185185
let mirror = Mirror(reflecting: any)
186186
guard mirror.displayStyle == .optional, let first = mirror.children.first else {

0 commit comments

Comments
 (0)