stdlib: coding style: add parentheses to one-argument closures for

consistency with the rest of the library

Swift SVN r25036
This commit is contained in:
Dmitri Hrybenko
2015-02-06 05:38:15 +00:00
parent 46302bd305
commit b158753ae4
10 changed files with 25 additions and 25 deletions

View File

@@ -292,7 +292,7 @@ struct _SliceBuffer<T> : _ArrayBufferType {
/// underlying contiguous storage.
public
func withUnsafeBufferPointer<R>(
@noescape body: UnsafeBufferPointer<Element> -> R
@noescape body: (UnsafeBufferPointer<Element>) -> R
) -> R {
let ret = body(UnsafeBufferPointer(start: self.baseAddress, count: count))
_fixLifetime(self)
@@ -303,7 +303,7 @@ struct _SliceBuffer<T> : _ArrayBufferType {
/// over the underlying contiguous storage.
public
mutating func withUnsafeMutableBufferPointer<R>(
@noescape body: UnsafeMutableBufferPointer<T> -> R
@noescape body: (UnsafeMutableBufferPointer<T>) -> R
) -> R {
let ret = body(
UnsafeMutableBufferPointer(start: baseAddress, count: count))