Skip to content

Commit 56030ec

Browse files
KentaKudoparkera
authored andcommitted
Fix some typos in Date.swift (#448)
1 parent fe685b4 commit 56030ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Foundation/Date.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public struct Date : ReferenceConvertible, Comparable, Equatable, CustomStringCo
9090
/**
9191
The time interval between the date and the current date and time.
9292

93-
If the date is earlier than the current date and time, the this property’s value is negative.
93+
If the date is earlier than the current date and time, this property’s value is negative.
9494

9595
- SeeAlso: `timeIntervalSince(_:)`
9696
- SeeAlso: `timeIntervalSince1970`
@@ -160,9 +160,9 @@ public struct Date : ReferenceConvertible, Comparable, Equatable, CustomStringCo
160160

161161
- Parameter locale: A `Locale` object. If you pass `nil`, `NSDate` formats the date in the same way as the `description` property.
162162

163-
- Returns: A string representation of the receiver, using the given locale, or if the locale argument is `nil`, in the international format `YYYY-MM-DD HH:MM:SS ±HHMM`, where `±HHMM` represents the time zone offset in hours and minutes from UTC (for example, “`2001-03-24 10:45:32 +0600`”)
163+
- Returns: A string representation of the receiver, using the given locale, or if the locale argument is `nil`, in the international format `YYYY-MM-DD HH:MM:SS ±HHMM`, where `±HHMM` represents the time zone offset in hours and minutes from UTC (for example, “`2001-03-24 10:45:32 +0600`”).
164164
*/
165-
public func description(with locale : Locale?) -> String {
165+
public func description(with locale: Locale?) -> String {
166166
return NSDate(timeIntervalSinceReferenceDate: _time).descriptionWithLocale(locale)
167167
}
168168

0 commit comments

Comments
 (0)