<label> body => _ body

This commit is contained in:
Dave Abrahams
2016-06-07 14:51:58 -07:00
parent eb27bb65a7
commit b5bc9be6fb
15 changed files with 36 additions and 27 deletions

View File

@@ -124,7 +124,7 @@ public struct StaticString
/// `withUTF8Buffer(invoke:)` method.
/// - Returns: The return value of the `body` closure, if any.
public func withUTF8Buffer<R>(
invoke body: @noescape (UnsafeBufferPointer<UInt8>) -> R) -> R {
_ body: @noescape (UnsafeBufferPointer<UInt8>) -> R) -> R {
if hasPointerRepresentation {
return body(UnsafeBufferPointer(
start: utf8Start, count: Int(utf8CodeUnitCount)))