stdlib: remove a stale FIXME, '!= nil' is now required to test Optionals for

the presence of a value


Swift SVN r21230
This commit is contained in:
Dmitri Hrybenko
2014-08-15 10:19:54 +00:00
parent 61f9b11e5f
commit a64dceed58

View File

@@ -1331,8 +1331,7 @@ extension String {
options: NSStringCompareOptions = nil,
range searchRange: Range<Index>? = nil
) -> String {
// FIXME: " != nil" needed pending <rdar://problem/16997968>
return (searchRange != nil) || (options != nil)
return (searchRange != nil) || (options != nil)
? _ns.stringByReplacingOccurrencesOfString(
target,
withString: replacement, options: options,