Skip to content

Commit 9fd632d

Browse files
authored
Merge pull request #3505 from KentaKudo/patch-1
Fix some typos in Date.swift
2 parents 0f66af4 + f6e1608 commit 9fd632d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/public/SDK/Foundation/Date.swift

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

91-
If the date is earlier than the current date and time, the this property's value is negative.
91+
If the date is earlier than the current date and time, this property's value is negative.
9292

9393
- SeeAlso: `timeIntervalSince(_:)`
9494
- SeeAlso: `timeIntervalSince1970`
@@ -115,7 +115,7 @@ public struct Date : ReferenceConvertible, Comparable, Equatable, CustomStringCo
115115
///
116116
/// - parameter timeInterval: The value to add, in seconds.
117117
/// - warning: This only adjusts an absolute value. If you wish to add calendrical concepts like hours, days, months then you must use a `Calendar`. That will take into account complexities like daylight saving time, months with different numbers of days, and more.
118-
public func addingTimeInterval(_ timeInterval : TimeInterval) -> Date {
118+
public func addingTimeInterval(_ timeInterval: TimeInterval) -> Date {
119119
return self + timeInterval
120120
}
121121

@@ -179,9 +179,9 @@ public struct Date : ReferenceConvertible, Comparable, Equatable, CustomStringCo
179179

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

182-
- 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`")
182+
- 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`").
183183
*/
184-
public func description(with locale : Locale?) -> String {
184+
public func description(with locale: Locale?) -> String {
185185
return NSDate(timeIntervalSinceReferenceDate: _time).description(with: locale)
186186
}
187187

0 commit comments

Comments
 (0)