Skip to content

Commit d61eac2

Browse files
authored
Merge pull request #70613 from honghoker/fix-typo
Fix typo whiteSpace between line comment
2 parents 7787da1 + 2fdb8b0 commit d61eac2

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

lib/Sema/TypeCheckConcurrency.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2644,7 +2644,7 @@ namespace {
26442644
auto value = valueRef.getDecl();
26452645
auto loc = declRef->getLoc();
26462646

2647-
//FIXME: Should this be subsumed in reference checking?
2647+
// FIXME: Should this be subsumed in reference checking?
26482648
if (value->isLocalCapture())
26492649
checkLocalCapture(valueRef, loc, declRef);
26502650
else

stdlib/public/core/Set.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ extension Set: Collection {
327327
/// Accesses the member at the given position.
328328
@inlinable
329329
public subscript(position: Index) -> Element {
330-
//FIXME(accessors): Provide a _read
330+
// FIXME(accessors): Provide a _read
331331
get {
332332
return _variant.element(at: position)
333333
}

stdlib/public/core/SmallString.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ extension _SmallString {
263263
) {
264264
_internalInvariant(index > 0)
265265
_internalInvariant(index <= _SmallString.capacity)
266-
//FIXME: Verify this on big-endian architecture
266+
// FIXME: Verify this on big-endian architecture
267267
let mask0 = (UInt64(bitPattern: ~0) &>> (8 &* ( 8 &- Swift.min(index, 8))))
268268
let mask1 = (UInt64(bitPattern: ~0) &>> (8 &* (16 &- Swift.max(index, 8))))
269269
storage.0 &= (index <= 0) ? 0 : mask0.littleEndian

test/Serialization/Inputs/def_basic.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,8 +1065,8 @@ sil [transparent] [serialized] @test_mark_fn_escape : $@convention(thin) () -> (
10651065
%c = alloc_box $<τ_0_0> { var τ_0_0 } <Int>
10661066
%ca = project_box %c : $<τ_0_0> { var τ_0_0 } <Int>, 0
10671067

1068-
//mark_function_escape %ba : $*Int
1069-
//mark_function_escape %ba : $*Int, %ca : $*Int
1068+
// mark_function_escape %ba : $*Int
1069+
// mark_function_escape %ba : $*Int, %ca : $*Int
10701070

10711071
%28 = tuple ()
10721072
return %28 : $()

tools/SourceKit/tools/sourcekitd-test/TestOptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ bool TestOptions::parseArgs(llvm::ArrayRef<const char *> Args) {
494494
void TestOptions::printHelp(bool ShowHidden) const {
495495

496496
// Based off of swift/lib/Driver/Driver.cpp, at Driver::printHelp
497-
//FIXME: should we use IncludedFlagsBitmask and ExcludedFlagsBitmask?
497+
// FIXME: should we use IncludedFlagsBitmask and ExcludedFlagsBitmask?
498498
// Maybe not for modes such as Interactive, Batch, AutolinkExtract, etc,
499499
// as in Driver.cpp. But could be useful for extra info, like HelpHidden.
500500

validation-test/stdlib/ArraysObjc.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ ArrayTestSuite.test("BridgedFromObjC.Nonverbatim.ImmutableArrayIsCopied") {
324324
CustomImmutableNSArray.timesCountWasCalled = 0
325325
TestBridgedValueTy.bridgeOperations = 0
326326
let a: [TestBridgedValueTy] = convertNSArrayToArray(nsa)
327-
//FIXME: Why is this copied?
327+
// FIXME: Why is this copied?
328328
expectEqual(1, CustomImmutableNSArray.timesCopyWithZoneWasCalled)
329329
expectEqual(3, CustomImmutableNSArray.timesObjectAtIndexWasCalled)
330330
expectNotEqual(0, CustomImmutableNSArray.timesCountWasCalled)

0 commit comments

Comments
 (0)