rust-lang / rust-lang/rust-by-example
Formatted print - fmt::Display example issue
Open
Nobody has claimed this yet.
- Dominant language
- Handlebars
- Stars
- 8.1k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
In https://doc.rust-lang.org/rust-by-example/hello/print.html
at line 47 there is an example for
// This will not compile because `Structure` does not implement
// fmt::Display.
//println!("This struct `{}` won't print...", Structure(3));
// TODO ^ Try uncommenting this line
if you uncomment the 48th, 49th, or both lines it still throws an error message.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the Rust by Example print.html page and inspect the example around line 47. Reproduce the error by uncommenting the referenced lines, then determine why the documented instruction fails. Done means the example and its accompanying comments accurately match the result of uncommenting those lines.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100