Skip to content

Commit 8d4cc9f

Browse files
authored
fix typo
1 parent adbc558 commit 8d4cc9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSCalendar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ open class NSDateComponents : NSObject, NSCopying, NSSecureCoding {
13151315
open override func isEqual(_ object: Any?) -> Bool {
13161316
guard let other = object as? NSDateComponents else { return false }
13171317

1318-
return self == other
1318+
return self === other
13191319
|| (era == other.era
13201320
&& year == other.year
13211321
&& quarter == other.quarter

0 commit comments

Comments
 (0)