mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[noescape by default] drop @noescape from stdlib
This commit is contained in:
@@ -744,7 +744,7 @@ public struct URL : ReferenceConvertible, Equatable {
|
||||
/// File system representation is a null-terminated C string with canonical UTF-8 encoding.
|
||||
/// - note: The pointer is not valid outside the context of the block.
|
||||
@available(OSX 10.9, iOS 7.0, *)
|
||||
public func withUnsafeFileSystemRepresentation<ResultType>(_ block: @noescape (UnsafePointer<Int8>?) throws -> ResultType) rethrows -> ResultType {
|
||||
public func withUnsafeFileSystemRepresentation<ResultType>(_ block: (UnsafePointer<Int8>?) throws -> ResultType) rethrows -> ResultType {
|
||||
return try block(_url.fileSystemRepresentation)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user