Skip to content

Comments

Fix bit numbers in comment for the example input reading routine#119

Merged
ISSOtm merged 1 commit intogbdev:masterfrom
bpeel:fix-input-bits-comment
Feb 26, 2025
Merged

Fix bit numbers in comment for the example input reading routine#119
ISSOtm merged 1 commit intogbdev:masterfrom
bpeel:fix-input-bits-comment

Conversation

@bpeel
Copy link
Contributor

@bpeel bpeel commented Feb 20, 2025

It looks like maybe the comment was copied from the one above for reading the buttons. If so, the order of the parts were swapped but not the bit numbers.

It looks like maybe the comment was copied from the one above for
reading the buttons. If so, the order of the parts were swapped but not
the bit numbers.
Copy link
Member

@ISSOtm ISSOtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think both readings make sense, one being before the swap and the other after it. I think giving the comment its own line (so, with this change, after the instruction) would clear up any confusion.

@bpeel
Copy link
Contributor Author

bpeel commented Feb 26, 2025

I think both readings make sense, one being before the swap and the other after it.

All of the other inline comments in the routine describe the state after the instruction has been applied. I think it would be a bit strange to interpret this one comment as the state before the instruction. It really looks like just a copy-and-paste mistake to me.

Copy link
Member

@ISSOtm ISSOtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough!

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.

2 participants