pNre / ExSwift

A set of Swift extensions for standard types and classes.
Other
3.38k stars 318 forks source link

Compile error caused by param mismatch for addMinutes method of NSDate #117

Closed chainone closed 9 years ago

chainone commented 9 years ago
/**
    Returns a new NSDate object representing the date calculated by adding an amount of minutes to self date

    :param: minutes number of minutes to add
    :returns: the NSDate computed
*/
public func addMinutes (minute: Int) -> NSDate {
    return add(minutes: minute)
}

The parameter name declared in the comments (minutes) is different form that in the method declaration which would cause XCode to raise an error.

pNre commented 9 years ago

Can you please give me more info about the error you're getting?

chainone commented 9 years ago

thanks pNre!