Skip to content

Commit c153c3a

Browse files
committed
Merge pull request #1810 from danra/patch-20
[gardening] Improved comments (NFC)
2 parents 9070697 + 7988864 commit c153c3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/swift/Basic/ClusteredBitVector.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ class ClusteredBitVector {
236236
}
237237

238238
ClusteredBitVector &operator=(const ClusteredBitVector &other) {
239-
// Do something with our current out-of-line capacity.
239+
// Do something with our current out-of-line storage.
240240
if (hasOutOfLineData()) {
241-
// Copy into our current capacity if it's adequate.
241+
// Copy into our current storage if its capacity is adequate.
242242
auto otherLengthInChunks = other.getLengthInChunks();
243243
if (otherLengthInChunks <= getOutOfLineCapacityInChunks()) {
244244
LengthInBits = other.LengthInBits;
@@ -252,7 +252,7 @@ class ClusteredBitVector {
252252
return *this;
253253
}
254254

255-
// Otherwise, destroy our current capacity.
255+
// Otherwise, destroy our current storage.
256256
destroy();
257257
}
258258

@@ -267,7 +267,7 @@ class ClusteredBitVector {
267267
}
268268

269269
ClusteredBitVector &operator=(ClusteredBitVector &&other) {
270-
// Just drop our current capacity.
270+
// Just drop our current out-of-line storage.
271271
if (hasOutOfLineData()) {
272272
destroy();
273273
}

0 commit comments

Comments
 (0)