We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dce2db9 + 0af6f09 commit 600975fCopy full SHA for 600975f
stdlib/public/core/String.swift
@@ -612,7 +612,7 @@ extension String {
612
#if _runtime(_ObjC)
613
// We only want to perform this optimization on objc runtimes. Elsewhere,
614
// we will make it follow the unicode collation algorithm even for ASCII.
615
- if (_core.isASCII && rhs._core.isASCII) {
+ if _core.isASCII && rhs._core.isASCII {
616
return _compareASCII(rhs)
617
}
618
#endif
@@ -715,7 +715,7 @@ extension String : Hashable {
715
@_semantics("string.concat")
716
public func + (lhs: String, rhs: String) -> String {
717
var lhs = lhs
718
- if (lhs.isEmpty) {
+ if lhs.isEmpty {
719
return rhs
720
721
lhs._core.append(rhs._core)
0 commit comments