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

[dcl.init.string] Shorten example string #6489

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Eisenwave
Copy link
Contributor

@Eisenwave Eisenwave commented Aug 21, 2023

Firstly, this edit shortens the string literal used in the example. This is necessary because the original author makes a point about why sizeof(msg) == 25. Due to the length of the old literal, it is not possible to estimate its length at first glance. Most readers cannot tell by intuition that "Syntax error on line %s\n" is 25 characters long, and might even make a mistake while counting. The new "Hi\n" literal has a length which serves the example much better.

Secondly, this edit adds a comma before at is a single character, and because because it is grammatically more appropriate.

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.

1 participant