-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Documentation addition request #92276
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
Comments
The standard way to implement debug is to use the debug builders |
I think this is a very reasonable ask. It doesn't make much sense to use the debug builders for very simple implementations of @alper you'd be welcome to submit a PR with a proposed example! You just need to edit the rustdoc comment for rust/library/core/src/fmt/mod.rs Line 505 in 51e8031
@rustbot label +T-libs A-docs +E-easy |
Thanks, @BGR360! My PR is linked above. |
…, r=dtolnay Add another implementation example to Debug trait As per the discussion in: rust-lang#92276
…, r=dtolnay Add another implementation example to Debug trait As per the discussion in: rust-lang#92276
…, r=dtolnay Add another implementation example to Debug trait As per the discussion in: rust-lang#92276
Thanks for the prodding. My change has now been merged. 🎉 |
I'm trying to implement Debug occasionally, then I hit this page:
https://doc.rust-lang.org/stable/core/fmt/trait.Debug.html
The examples on that page do not contain something that uses
write!
so I usually google my way to the same SO answer: https://stackoverflow.com/a/22243806/102315Could the documentation there be expanded to add this?
The text was updated successfully, but these errors were encountered: