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

The wording of part of your description of comments is a bit wrong. #62

WraithGlade opened this issue Dec 19, 2019 · 1 comment


Copy link

On/near page 21 in the ebook, the text "These symbols, // or /**/, tell the compiler to ignore everything from the first forward slash to the next newline" is not technically correct.

The way you have written it implies that both single line and multi-line comments "ignore everything from the first forward slash to the next newline", which is wrong. Only the single line comments do that.

Also, the compiler doesn't ignore everything from the first forward slash in "//", because in fact if you insert other text between the first "/" and the second "/" then it will try to parse the text as not being a comment. It's only after the entire "//" operator is written coherently that the subsequent text ignoring will occur.

Thus, you have two different aspects of this explanation in the text that are technically worded wrong.

Copy link

Thanks, @WraithGlade

kruschk pushed a commit to kruschk/ccc that referenced this issue Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants