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

[class.conv.ctor] Fix missing space #6497

Merged
merged 1 commit into from Nov 8, 2023

Conversation

Eisenwave
Copy link
Contributor

draft/source/classes.tex

Lines 2357 to 2369 in 1c22d62

struct X {
X(int);
X(const char*, int =0);
X(int, int);
};
void f(X arg) {
X a = 1; // \tcode{a = X(1)}
X b = "Jessie"; // \tcode{b = X("Jessie",0)}
a = 2; // \tcode{a = X(2)}
f(3); // \tcode{f(X(3))}
f({1, 2}); // \tcode{f(X(1,2))}
}

The author follows the = style in the rest of the example, so it is obvious that the missing space here is not intentional, but a typo.

@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 8, 2023

The core language deliberatey does not use any one fixed style, and the document has no specific "author". We can make the change, but I wouldn't call it a "fix".

@tkoeppe tkoeppe merged commit ad839a0 into cplusplus:main Nov 8, 2023
2 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.

None yet

3 participants