Skip to content

Commit 72c8023

Browse files
committed
Fixed comment for Calendar's compare method
1 parent bb8f718 commit 72c8023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/Calendar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ public struct Calendar : Hashable, Equatable, ReferenceConvertible, _MutableBoxi
588588
public func compare(_ date1: Date, to date2: Date, toUnitGranularity unit: NSCalendar.Unit) -> ComparisonResult { fatalError() }
589589

590590

591-
/// Compares the given dates down to the given component, reporting them `orderedSame` if they are the same in the given component and all larger components, otherwise either `orderedAscending` or `orderedAscending`.
591+
/// Compares the given dates down to the given component, reporting them `orderedSame` if they are the same in the given component and all larger components, otherwise either `orderedAscending` or `orderedDescending`.
592592
///
593593
/// - parameter date1: A date to compare.
594594
/// - parameter date2: A date to compare.

0 commit comments

Comments
 (0)