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

[library] Add full stops to \returns etc. #1238

Merged
merged 2 commits into from Dec 14, 2016

Conversation

jlaire
Copy link

@jlaire jlaire commented Dec 14, 2016

My understanding is that we want to always end \returns and other elements in a full stop. The wiki (https://github.com/cplusplus/draft/wiki/Specification-Style-Guidelines) seems to agree with this, although it doesn't talk about all elements and there is one conflicting "Returns: T{0}" example.

I haven't gone through the whole draft so there are likely a lot more remaining. These are just ones I've noticed so far.

@jensmaurer
Copy link
Member

jensmaurer commented Dec 14, 2016

I've updated the style guidelines to fix the "Returns: T{0}" bug.

@jensmaurer
Copy link
Member

Looks like an improvement to me. The commit comment for the first one might want to mention that capitalization (first letter after element designation) is also adjusted.

@jlaire jlaire force-pushed the library-elements-punct branch 2 times, most recently from c7d96a1 to a42eb80 Compare December 14, 2016 15:16
Capitalize the first word and end in a full stop.
@jlaire
Copy link
Author

jlaire commented Dec 14, 2016

I reworded the commit message and added a few more fixes.

@@ -18990,7 +18990,7 @@
\begin{example}
\begin{codeblock}
using namespace std;
vector<int> v = ...
vector<int> v = ...;
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't valid syntax. Could you perhaps use vector<int> v = @\commentellip@;?

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, I didn't know about that. There seem to be many uses of literal ... that could be changed, but I'll leave the others for a different PR.

@@ -1281,15 +1281,15 @@
tuple_element<0, pair<T1, T2>>::type
\end{itemdecl}
\begin{itemdescr}
\pnum\textit{Value:} the type \tcode{T1}.
\pnum\textit{Value:} The type \tcode{T1}.
Copy link
Contributor

Choose a reason for hiding this comment

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

The value is a type? Eww. This is weird.

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, it is.

@tkoeppe tkoeppe merged commit f66fb79 into cplusplus:master Dec 14, 2016
@jlaire jlaire deleted the library-elements-punct branch December 14, 2016 15:47
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