Skip to content

Conversation

@0xMushow
Copy link

Issue Addressed

Which issue # does this PR address?
None

Proposed Changes

The visualize_batch_state  functions uses the following loop for mut batch_index in 0..BATCH_BUFFER_SIZE, making it from 0 to BATCH_BUFFER_SIZE - 1 (behind the scenes).

Hence we would never hit the following condition:

if batch_index != BATCH_BUFFER_SIZE {
    visualization_string.push(',');
}

Replacing != with < & BATCH_BUFFER_SIZE -1 allows for the following change:

[A,B,C,D,E,] to become: [A,B,C,D,E]

Additional Info

Please provide any additional information. For example, future considerations
or information useful for reviewers.

@0xMushow 0xMushow requested a review from jxs as a code owner November 28, 2025 15:57
@cla-assistant
Copy link

cla-assistant bot commented Nov 28, 2025

CLA assistant check
All committers have signed the CLA.

@cla-assistant
Copy link

cla-assistant bot commented Nov 28, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant