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

[diff] Uniform style for examples #5757

Merged
merged 2 commits into from Aug 22, 2022
Merged

[diff] Uniform style for examples #5757

merged 2 commits into from Aug 22, 2022

Conversation

tkoeppe
Copy link
Contributor

@tkoeppe tkoeppe commented Aug 20, 2022

For C++ differences, examples are always preceded by the phrase "For
example:", do not use the usual [Example n: ... -- end example] style,
and always appear in the "Effects on original feature" paragraph.

For differences with C, a different set of styles is used (examples
being part of paragraphs such as "Change" and "Rationale"), and that
subclause remains unchanged by this commit.

Suggested by CD review.

I will update the wiki accordingly.

For C++ differences, examples are always preceded by the phrase "For
example:", do not use the usual [Example n: ... -- end example] style,
and always appear in the "Effects on original feature" paragraph.

For differences with C, a different set of styles is used (examples
being part of paragraphs such as "Change" and "Rationale"), and that
subclause remains unchanged by this commit.
source/compatibility.tex Outdated Show resolved Hide resolved
Co-authored-by: Johel Ernesto Guerrero Peña <johelegp@gmail.com>
Copy link
Member

@jwakely jwakely left a comment

Choose a reason for hiding this comment

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

LGTM

@tkoeppe tkoeppe merged commit 986f591 into cplusplus:main Aug 22, 2022
@tkoeppe
Copy link
Contributor Author

tkoeppe commented Aug 22, 2022

Wiki updated: https://github.com/cplusplus/draft/wiki/Specification-Style-Guidelines#differences-with-previous-versions-of-c

@tkoeppe tkoeppe deleted the exdiff branch August 22, 2022 15:30
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