-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Clarify std::fmt width docs w.r.t. dollar syntax and give example. #33258
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ |
📌 Commit 815987b has been approved by |
@bors: rollup |
one tip for making it less cryptic to read is to use a named parameter for the width. |
@bluss Interesting! From the syntax on that page, it is not apparent that names are allowed. I guess I'll make another change for that. |
(Procedure question: should I add a commit to this PR now that it is already approved, or make another PR once bors merged this one?) |
Clarify std::fmt width docs w.r.t. dollar syntax and give example. The previous version only said "the `2$` syntax", which while introduced in the grammar is not very self-explanatory.
@birkenfeld it depends on the change, but with something small like this, a follow-up is fine :) |
The previous version only said "the
2$
syntax", which while introduced in the grammar is not very self-explanatory.