-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Improve docs for write!/writeln! macros #28049
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
0c20e23
to
977e96e
Compare
/// See [`std::fmt`][fmt] for more information on format syntax. | ||
/// | ||
/// [fmt]: fmt/index.html | ||
/// [write]: io/trait.Write.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, we gave up on making rustdoc do crosslinking? Who’s going to check these links do not break in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That ship sailed a long time ago.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(that doesn't mean we couldn't add it in the future, but there are tons and tons and tons of these manual links all throughout the documentation)
Actually I think the new docs are slightly incorrect, because |
977e96e
to
20c034f
Compare
@TimNN confirmed:
So, with that in mind, I'm not entirely sure how to document this, exactly. Seems like a fairly complex requirement... |
@steveklabnik I believe the intent here is to be used as you say, and the stuff with formatting is largely an implementation artifact; I find this confusing every time I look at it. @alexcrichton, do you think what @steveklabnik has here is a reasonable gloss? r=me if so :) |
Yeah just because it'd a "duck typed I just call (the links are still broken btw) |
@alexcrichton they don't look broken to me? |
20c034f
to
ef9e542
Compare
No description provided.