We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ed5b75 commit 47a7f69Copy full SHA for 47a7f69
1 file changed
source/code/projects/CQueue/CQueue/CQueue.cs
@@ -60,10 +60,10 @@ public void Resize()
60
}
61
62
// 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.
+ // if we reached the "end" of mArray,
+ // then the value needs to become 0:
+ // we resume "circling" through the
+ // array.
67
private void Increment(ref int value)
68
{
69
value++;
0 commit comments