rust-lang / rust-lang/rust-by-example
The last example in 18.6. "Iterating over Results" should also show use of partition_result
Open
Nobody has claimed this yet.
- Dominant language
- Handlebars
- Stars
- 8.1k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
partition_map and partition_result are nice ways of circumventing the boilerplate code that the example suggests is necessary.
I suppose the example was made before those functions were added?
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
Start with chapter 18.6, “Iterating over Results,” and inspect its last example. Update the example to demonstrate partition_result alongside the existing boilerplate, then verify that the rendered Rust example remains accurate and complete.
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
- 48/100