rust-lang / rust-lang/rust-by-example
While_let example doesn't work
Open
Nobody has claimed this yet.
bug
- Dominant language
- Handlebars
- Stars
- 8.1k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
There is something wrong with the second example in the official docu for while let construct. When the code is run, following compiler error occurs:
The code is correct, since it is working on my local machine.
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 linked rust-by-example while let page and reproduce the compiler error from its second example. Compare the rendered example with the version that works locally, then update the documentation so the example compiles as shown and verify it again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100