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

In comments, fix typos. #87

Merged
merged 4 commits into from
Oct 30, 2024
Merged

Conversation

ysono
Copy link
Contributor

@ysono ysono commented Oct 18, 2024

This PR modifies intra-sample comments only.

One thing I left untouched: in tests/chapter_10/valid/libraries/external_linkage_function_client.c, add_three_and_four(), comment says the sum() function is shadowed, but it's not.

@nlsandler
Copy link
Owner

nlsandler commented Oct 21, 2024

Thank you for this PR! LGTM except one nit about "eightbytes". I also flagged a couple pre-existing typos that it makes sense to fix in this PR. I'll run the workflows once you've made those changes (or let me know if you'd prefer I make them myself).

Thanks for the catch about the comment in tests/chapter_10/valid/libraries/external_linkage_function_client.c - I'll open a separate PR for that.

Copy link
Owner

@nlsandler nlsandler left a comment

Choose a reason for hiding this comment

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

Looks good, just needs a few tiny tweaks - let me know whether you'd rather make those fixes or just have me do it.

@@ -11,7 +11,7 @@ int main(void) {
}
int i = -50;
int *i_ptr = &i;
// convert i_ptr to unsigned, perform conversion, then convert back
// convert *i_ptr to unsigned, perform conversion, then convert back
Copy link
Owner

Choose a reason for hiding this comment

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

Since you're updating this line anyway, could you change "perform conversion" to "perform operation"?

@@ -1,4 +1,4 @@
// Test comound assignment through pointers that requires type conversions
// Test comound assignment through pointers that require type conversions
Copy link
Owner

Choose a reason for hiding this comment

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

Since you're fixing this line anyway, could you change "comound" to "compound"?

@ysono
Copy link
Contributor Author

ysono commented Oct 29, 2024

Thanks for your corrections. Please go ahead and make the adjustments.

@nlsandler nlsandler merged commit a33a818 into nlsandler:main Oct 30, 2024
95 checks passed
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