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
Conversation
I've updated the style guidelines to fix the "Returns: T{0}" bug. |
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. |
c7d96a1
to
a42eb80
Compare
Capitalize the first word and end in a full stop.
a42eb80
to
f6a52cd
Compare
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 = ...; |
There was a problem hiding this comment.
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@;
?
There was a problem hiding this comment.
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}. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it is.
f6a52cd
to
2957ebe
Compare
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.