-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
std::fmt
documentation does not explain the colon
#131865
Comments
kpreid
added
the
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
label
Oct 18, 2024
rustbot
added
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
A-fmt
Area: `std::fmt`
labels
Oct 18, 2024
jieyouxu
added
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Oct 18, 2024
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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: