-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Docs: implementors list could be more readable #41879
Comments
relevant to #41084 |
See also #25061. |
What's the current status of this? Where clauses have had a bit of a touch-up since this issue was posted, so i'd like to make sure what critiques still apply. (The main change that i think is new to this issue is that where clauses are now a bit smaller than the impl they apply to, and also associated types are printed for traits that have them.) As to the suggestions in the OP:
|
FWIW, I'm quite happy with the current situation, except I'd still like to see some spacing between consecutive impls - they are squeezed a bit too closely together: And this is what it looks like if I change Might even go for Regarding the 2. and 3. point, yeah, let's stick to the style guidelines. |
…, r=QuietMisdreavus Rustdoc: Increase padding between consecutive impls Currently, [implementors](https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html#implementors) list is a bit too condensed. More spacing makes the list easier to read. Check out [this comment](rust-lang#41879 (comment)) to see what's the effect of this change. Closes rust-lang#41879. cc @QuietMisdreavus
Stable Rust: https://doc.rust-lang.org/std/ops/trait.Deref.html#tymethod.deref
Nightly Rust: https://doc.rust-lang.org/nightly/std/ops/trait.Deref.html#tymethod.deref
The docs on stable look better than on nightly.
The problem with nightly is that all these impls written one after another look rather messy.
A few ideas that might help:
where
and all following clauses into a dedicate line. This is what the stable docs do.As a side node, the indentation of two spaces in the stable docs looks odd: 4 spaces would look better.
The text was updated successfully, but these errors were encountered: