From 508fbf1ee466518b3902010a804b6ce2164403a3 Mon Sep 17 00:00:00 2001 From: Marlon Andrade Date: Thu, 3 Dec 2015 16:00:57 -0200 Subject: [PATCH] Fix 'iff' typo --- stdlib/public/core/Optional.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/public/core/Optional.swift b/stdlib/public/core/Optional.swift index 4f81e50b73fdc..df955e50aeb47 100644 --- a/stdlib/public/core/Optional.swift +++ b/stdlib/public/core/Optional.swift @@ -91,7 +91,7 @@ public func map(x: T?, @noescape _ f: (T)->U) -> U? { } -/// Returns `f(self)!` iff `self` and `f(self)` are not nil. +/// Returns `f(self)!` if `self` and `f(self)` are not nil. @available(*, unavailable, message="call the 'flatMap()' method on the optional value") public func flatMap(x: T?, @noescape _ f: (T)->U?) -> U? { fatalError("unavailable function can't be called") @@ -161,6 +161,7 @@ public struct _OptionalNilComparisonType : NilLiteralConvertible { public init(nilLiteral: ()) { } } + @_transparent @warn_unused_result public func ~= (lhs: _OptionalNilComparisonType, rhs: T?) -> Bool {