Skip to content

Commit cfd3936

Browse files
authored
Merge pull request swiftlang#75048 from Benedicto-H/fix/typos-task
[Shims] Fix typos in RefCount.h
2 parents 27a5d62 + 9ad83e7 commit cfd3936

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

stdlib/public/SwiftShims/swift/shims/RefCount.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,8 @@ class RefCounts {
818818
HeapObject *increment(uint32_t inc = 1) {
819819
auto oldbits = refCounts.load(SWIFT_MEMORY_ORDER_CONSUME);
820820

821-
// constant propagation will remove this in swift_retain, it should only
822-
// be present in swift_retain_n
821+
// Constant propagation will remove this in swift_retain, it should only
822+
// be present in swift_retain_n.
823823
if (inc != 1 && oldbits.isImmortal(true)) {
824824
return getHeapObject();
825825
}
@@ -842,8 +842,8 @@ class RefCounts {
842842
void incrementNonAtomic(uint32_t inc = 1) {
843843
auto oldbits = refCounts.load(SWIFT_MEMORY_ORDER_CONSUME);
844844

845-
// constant propagation will remove this in swift_retain, it should only
846-
// be present in swift_retain_n
845+
// Constant propagation will remove this in swift_retain, it should only
846+
// be present in swift_retain_n.
847847
if (inc != 1 && oldbits.isImmortal(true)) {
848848
return;
849849
}
@@ -921,7 +921,7 @@ class RefCounts {
921921
// Non-atomically release the last strong reference and mark the
922922
// object as deiniting.
923923
//
924-
// Precondition: the reference count must be 1
924+
// Precondition: the reference count must be 1.
925925
SWIFT_ALWAYS_INLINE
926926
void decrementFromOneNonAtomic() {
927927
auto bits = refCounts.load(SWIFT_MEMORY_ORDER_CONSUME);
@@ -1062,8 +1062,8 @@ class RefCounts {
10621062
bool deinitNow;
10631063
auto newbits = oldbits;
10641064

1065-
// constant propagation will remove this in swift_release, it should only
1066-
// be present in swift_release_n
1065+
// Constant propagation will remove this in swift_release, it should only
1066+
// be present in swift_release_n.
10671067
if (dec != 1 && oldbits.isImmortal(true)) {
10681068
return false;
10691069
}
@@ -1110,8 +1110,8 @@ class RefCounts {
11101110
auto oldbits = refCounts.load(SWIFT_MEMORY_ORDER_CONSUME);
11111111
RefCountBits newbits;
11121112

1113-
// constant propagation will remove this in swift_release, it should only
1114-
// be present in swift_release_n
1113+
// Constant propagation will remove this in swift_release, it should only
1114+
// be present in swift_release_n.
11151115
if (dec != 1 && oldbits.isImmortal(true)) {
11161116
return false;
11171117
}

0 commit comments

Comments
 (0)