Skip to content

Commit

Permalink
Ignore external labels for pure
Browse files Browse the repository at this point in the history
  • Loading branch information
gfontenot committed Jul 22, 2016
1 parent d391fc7 commit 245ae77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Array.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public func <-< <T, U, V>(f: (U) -> [V], g: (T) -> [U]) -> (T) -> [V] {
- returns: The provided value wrapped in an array
*/
public func pure<T>(a: T) -> [T] {
public func pure<T>(_ a: T) -> [T] {
return [a]
}

Expand Down
2 changes: 1 addition & 1 deletion Source/Optional.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public func <-< <T, U, V>(f: (U) -> V?, g: (T) -> U?) -> (T) -> V? {
- returns: The provided value wrapped in `.Some`
*/
public func pure<T>(a: T) -> T? {
public func pure<T>(_ a: T) -> T? {
return .some(a)
}

Expand Down

0 comments on commit 245ae77

Please sign in to comment.