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

@WraithGlade WraithGlade commented Dec 19, 2019

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.

@JLospinoso JLospinoso closed this in f09c8a9 Jan 1, 2020

This comment has been minimized.

Copy link

@JLospinoso JLospinoso commented Jan 1, 2020

Thanks, @WraithGlade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.