Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesyo committed Nov 15, 2016
1 parent a7d0cdc commit fd89d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Result/Result.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ public func materialize<T>(_ f: @autoclosure () throws -> T) -> Result<T, AnyErr
}
}

@available(*, deprecated, message: "Use the overroad which returns `Result<T, AnyError>` instead")
@available(*, deprecated, message: "Use the overload which returns `Result<T, AnyError>` instead")
public func materialize<T>(_ f: () throws -> T) -> Result<T, NSError> {
return materialize(try f())
}

@available(*, deprecated, message: "Use the overroad which returns `Result<T, AnyError>` instead")
@available(*, deprecated, message: "Use the overload which returns `Result<T, AnyError>` instead")
public func materialize<T>(_ f: @autoclosure () throws -> T) -> Result<T, NSError> {
do {
return .success(try f())
Expand Down

0 comments on commit fd89d0e

Please sign in to comment.