Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant and stale comment #27229

Merged
merged 1 commit into from
Aug 23, 2022
Merged

Conversation

ryoqun
Copy link
Member

@ryoqun ryoqun commented Aug 18, 2022

see diff comment for details

@ryoqun ryoqun requested a review from tao-stones August 18, 2022 06:13
@@ -44,7 +44,6 @@ impl ExecuteCostTable {
self.table.len()
}

/// default program cost, set to ComputeBudget::DEFAULT_COMPUTE_UNIT_LIMIT
Copy link
Member Author

Choose a reason for hiding this comment

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

maybe, DEFAULT_COMPUTE_UNIT_LIMIT should be DEFAULT_INSTRUCTION_COMPUTE_UNIT_LIMIT. typo at #25229

moreover, i think this comment adds little value, so better off removing it altogether. that's because the fn body is small and the fn name alone is enough while the comment is being redundant.

Copy link
Contributor

@tao-stones tao-stones left a comment

Choose a reason for hiding this comment

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

Agree, the comment is redundant.

@ryoqun ryoqun merged commit 3db5e82 into solana-labs:master Aug 23, 2022
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