Add spaces before and after closure arrow in stdlib

This commit is contained in:
ken0nek
2015-12-23 04:52:15 +09:00
parent 3ac60b13f5
commit e7e70cea92
22 changed files with 92 additions and 92 deletions

View File

@@ -46,7 +46,7 @@ extension String {
/// that is the target of this method) during the execution of
/// `body`: it may not appear to have its correct value. Instead,
/// use only the `String.CharacterView` argument to `body`.
public mutating func withMutableCharacters<R>(body: (inout CharacterView)->R) -> R {
public mutating func withMutableCharacters<R>(body: (inout CharacterView) -> R) -> R {
// Naively mutating self.characters forces multiple references to
// exist at the point of mutation. Instead, temporarily move the
// core of this string into a CharacterView.