std::fmt
documentation does not explain the colon
#131865
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
A-fmt
Area: `std::fmt`
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
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: