Skip to content

Fix some typos in Date.swift #448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Foundation/Date.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public struct Date : ReferenceConvertible, Comparable, Equatable, CustomStringCo
/**
The time interval between the date and the current date and time.

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

- SeeAlso: `timeIntervalSince(_:)`
- SeeAlso: `timeIntervalSince1970`
Expand Down Expand Up @@ -160,9 +160,9 @@ public struct Date : ReferenceConvertible, Comparable, Equatable, CustomStringCo

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

- 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`”)
- 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`”).
*/
public func description(with locale : Locale?) -> String {
public func description(with locale: Locale?) -> String {
return NSDate(timeIntervalSinceReferenceDate: _time).descriptionWithLocale(locale)
}

Expand Down