Skip to content

Commit 47a7f69

Browse files
committed
Clarification on Queue source code.
1 parent 5ed5b75 commit 47a7f69

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

source/code/projects/CQueue/CQueue/CQueue.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ public void Resize()
6060
}
6161

6262
// Increment must be done carefully:
63-
// what if we reached the "end of mArray"
64-
// but there is room available at the
65-
// beginning of the queue? Then the value
66-
// needs to become 0.
63+
// if we reached the "end" of mArray,
64+
// then the value needs to become 0:
65+
// we resume "circling" through the
66+
// array.
6767
private void Increment(ref int value)
6868
{
6969
value++;

0 commit comments

Comments
 (0)