Skip to content

Enhancements to Aztec Documentation: Grammar and Clarity Improvements#9688

Closed
Noisyxl wants to merge 3 commits intoAztecProtocol:masterfrom
Noisyxl:master
Closed

Enhancements to Aztec Documentation: Grammar and Clarity Improvements#9688
Noisyxl wants to merge 3 commits intoAztecProtocol:masterfrom
Noisyxl:master

Conversation

@Noisyxl
Copy link
Contributor

@Noisyxl Noisyxl commented Nov 2, 2024

In this pull request, I have made improvements to the Aztec documentation by correcting several grammatical errors to enhance clarity and user-friendliness of the code

pub indirect: Option<AvmOperand>,

/// Some instructions have a destination xor input tag
/// Some instructions have a destination or input tag
Copy link
Collaborator

Choose a reason for hiding this comment

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

@fcarreiro is this correction correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using ‘or’ is more appropriate here, as it indicates that the instruction can have either a destination tag or an input tag, but not necessarily both.

Copy link
Collaborator

@ludamad ludamad Nov 2, 2024

Choose a reason for hiding this comment

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

the 'not necessarily both' part is what 'xor' would mean, though :) (exclusive-or)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right! 'XOR' captures the idea that only one of the tags can be present, but using 'or' might make it clearer to those who aren't familiar with the terminology. Maybe we could stick with 'or' for simplicity?

Copy link
Contributor

Choose a reason for hiding this comment

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

The tag concept changed since this was written. Right now only 2 opcodes have (and must have) a tag: SET and CAST. In both cases, the tag is the expected destination type to be set. All other opcodes don't have (and cannot have) a tag.

I'm ok with "Some instructions have a tag, it's usage will depend on the instruction." at this level. I'm also ok with removing "xor" since it's not real english.

@ludamad ludamad added the redo-typo-pr Automated. label Nov 2, 2024
@AztecBot AztecBot closed this Nov 2, 2024
ludamad pushed a commit that referenced this pull request Nov 2, 2024
Thanks donatik27 for
#9688. Our policy is
to redo typo changes to dissuade metric farming. This is an automated
script.

---------

Co-authored-by: Noisy <125606576+donatik27@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

redo-typo-pr Automated.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants