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

Clarify std::fmt width docs w.r.t. dollar syntax and give example. #33258

Merged
merged 1 commit into from
Apr 29, 2016

Conversation

birkenfeld
Copy link
Contributor

The previous version only said "the 2$ syntax", which while introduced in the grammar is not very self-explanatory.

@rust-highfive
Copy link
Collaborator

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@brson
Copy link
Contributor

brson commented Apr 28, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Apr 28, 2016

📌 Commit 815987b has been approved by brson

@steveklabnik
Copy link
Member

@bors: rollup

@bluss
Copy link
Member

bluss commented Apr 28, 2016

one tip for making it less cryptic to read is to use a named parameter for the width.

@birkenfeld
Copy link
Contributor Author

birkenfeld commented Apr 28, 2016

@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.

@birkenfeld
Copy link
Contributor Author

(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?)

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 29, 2016
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.
bors added a commit that referenced this pull request Apr 29, 2016
Rollup of 4 pull requests

- Successful merges: #33239, #33248, #33253, #33258
- Failed merges:
@bors bors merged commit 815987b into rust-lang:master Apr 29, 2016
@steveklabnik
Copy link
Member

@birkenfeld it depends on the change, but with something small like this, a follow-up is fine :)

@birkenfeld birkenfeld deleted the fmt-dollar-syntax branch April 29, 2016 16: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.

6 participants