Skip to content

Commit c262b42

Browse files
practicalswifttkremenek
authored andcommitted
[gardening] Fix recently introduced whitespace typos. (#2443)
1 parent 44d19e8 commit c262b42

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

include/swift/Reflection/TypeRef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class TypeRefID {
9494
(((uint32_t) String[i+3]) << 24);
9595
Bits.push_back(entry);
9696
}
97-
for(; i < String.size(); ++i) {
97+
for (; i < String.size(); ++i) {
9898
Bits.push_back(String[i]);
9999
}
100100
}

lib/SILOptimizer/Transforms/DeadStoreElimination.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ void DSEContext::processBasicBlockForGenKillSet(SILBasicBlock *BB) {
597597

598598
// Handle SILArgument for base invalidation.
599599
ArrayRef<SILArgument *> Args = BB->getBBArgs();
600-
for(auto &X : Args) {
600+
for (auto &X : Args) {
601601
invalidateBase(X, BBState, DSEKind::BuildGenKillSet);
602602
}
603603
}
@@ -640,7 +640,7 @@ void DSEContext::processBasicBlockForDSE(SILBasicBlock *BB, bool Optimistic) {
640640

641641
// Handle SILArgument for base invalidation.
642642
ArrayRef<SILArgument *> Args = BB->getBBArgs();
643-
for(auto &X : Args) {
643+
for (auto &X : Args) {
644644
invalidateBase(X, S, DSEKind::BuildGenKillSet);
645645
}
646646

stdlib/private/StdlibCollectionUnittest/CheckCollectionInstance.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ public func check${Traversal}Collection<
356356
instances,
357357
distances: distances,
358358
of: collection,
359-
distanceOracle: { (x:Int,y:Int) in numericCast(y - x) },
360-
advanceOracle: { x,y in nextN(distances[y], instances[x]) },
359+
distanceOracle: { (x:Int, y:Int) in numericCast(y - x) },
360+
advanceOracle: { x, y in nextN(distances[y], instances[x]) },
361361
startIndex: collection.startIndex,
362362
endIndex: next5(partWay1), ${trace})
363363

stdlib/public/Platform/Platform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public var errno : Int32 {
103103
get {
104104
#if os(OSX) || os(iOS) || os(watchOS) || os(tvOS) || os(FreeBSD)
105105
return __error().pointee
106-
//FIXME: os(Windows) should be replaced, such as triple(Cygwin)
106+
// FIXME: os(Windows) should be replaced, such as triple(Cygwin)
107107
#elseif os(Android) || os(Windows)
108108
return __errno().pointee
109109
#else

0 commit comments

Comments
 (0)