From 20030242bdd599339c0abecef2b6897c0ba0c175 Mon Sep 17 00:00:00 2001 From: Ge Sen Date: Sat, 5 Dec 2015 12:11:47 +0800 Subject: [PATCH] Erase redundant whitespaces. --- stdlib/public/core/BridgeObjectiveC.swift | 2 +- stdlib/public/core/Character.swift | 4 ++-- stdlib/public/core/Existential.swift | 2 +- stdlib/public/core/StringLegacy.swift | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stdlib/public/core/BridgeObjectiveC.swift b/stdlib/public/core/BridgeObjectiveC.swift index d2914639a3d69..116e586ccba0e 100644 --- a/stdlib/public/core/BridgeObjectiveC.swift +++ b/stdlib/public/core/BridgeObjectiveC.swift @@ -300,7 +300,7 @@ public func _isBridgedVerbatimToObjectiveC(_: T.Type) -> Bool { /// Retrieve the Objective-C type to which the given type is bridged. @warn_unused_result -public func _getBridgedObjectiveCType(_: T.Type) -> Any.Type? { +public func _getBridgedObjectiveCType(_: T.Type) -> Any.Type? { if _fastPath(_isClassOrObjCExistential(T.self)) { return T.self } diff --git a/stdlib/public/core/Character.swift b/stdlib/public/core/Character.swift index 28d42b9d65d3e..2172093ed8311 100644 --- a/stdlib/public/core/Character.swift +++ b/stdlib/public/core/Character.swift @@ -66,8 +66,8 @@ public struct Character : isASCII: Builtin.Int1) { self = Character( String( - _builtinExtendedGraphemeClusterLiteral: start, - byteSize: byteSize, + _builtinExtendedGraphemeClusterLiteral: start, + byteSize: byteSize, isASCII: isASCII)) } diff --git a/stdlib/public/core/Existential.swift b/stdlib/public/core/Existential.swift index 50ddd3d99c10d..718e22dee171b 100644 --- a/stdlib/public/core/Existential.swift +++ b/stdlib/public/core/Existential.swift @@ -20,7 +20,7 @@ /// Unavailable; use `AnyGenerator` instead. @available(*, unavailable, renamed="AnyGenerator") -public struct GeneratorOf {} +public struct GeneratorOf {} /// Unavailable; use `AnySequence` instead. @available(*, unavailable, renamed="AnySequence") diff --git a/stdlib/public/core/StringLegacy.swift b/stdlib/public/core/StringLegacy.swift index 6d70c600fd497..39399c5ded89f 100644 --- a/stdlib/public/core/StringLegacy.swift +++ b/stdlib/public/core/StringLegacy.swift @@ -111,7 +111,7 @@ extension String { } /// Create an instance representing `v` in base 10. - public init(_ v: T) { + public init(_ v: T) { self = _uint64ToString(v.toUIntMax()) } @@ -133,7 +133,7 @@ extension String { /// starting with `a` if `uppercase` is `false` or `A` otherwise. public init( _ v: T, radix: Int, uppercase: Bool = false - ) { + ) { _precondition(radix > 1, "Radix must be greater than 1") self = _uint64ToString( v.toUIntMax(), radix: Int64(radix), uppercase: uppercase)