-
Notifications
You must be signed in to change notification settings - Fork 13.3k
std::fmt
documentation does not explain the colon
#131865
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
This was referenced Oct 29, 2024
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Nov 2, 2024
…ss35 Docs: added brief colon explanation rust-lang#131865 (this is my first attempt at contributing, feedback is welcome)
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Nov 3, 2024
…ss35 Docs: added brief colon explanation rust-lang#131865 (this is my first attempt at contributing, feedback is welcome)
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Nov 3, 2024
…ss35 Docs: added brief colon explanation rust-lang#131865 (this is my first attempt at contributing, feedback is welcome)
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Nov 3, 2024
…ss35 Docs: added brief colon explanation rust-lang#131865 (this is my first attempt at contributing, feedback is welcome)
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Nov 3, 2024
…ss35 Docs: added brief colon explanation rust-lang#131865 (this is my first attempt at contributing, feedback is welcome)
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Nov 3, 2024
Rollup merge of rust-lang#132393 - zedddie16:issue-131865-fix, r=tgross35 Docs: added brief colon explanation rust-lang#131865 (this is my first attempt at contributing, feedback is welcome)
triage: fixed in #132393, cant add unit tests for docs, closing as completed. |
@kpreid if this is fixed, can you close this? |
i can |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Location
https://doc.rust-lang.org/std/fmt/
Summary
The documentation of format strings uses the colon “:” without ever explaining what its role is. To some it will be obvious, but others will benefit from a brief explanation of the general syntax principle: that everything to the left of the “:” is the identifier of the input data, everything to the right is formatting options, and the colon per se does not change anything at all but only introduces the options.
@rustbot label +A-fmt
The text was updated successfully, but these errors were encountered: