clarify what is leaked even more
Nobody has claimed this yet.
- Dominant language
- CSS
- Stars
- 2.3k
- Forks
- 325
- PR merge metrics
- No merged PRs in 30d
Description
it says below in https://github.com/rust-lang/nomicon/blob/master/src/leaking.md
all that does is leak even more (and possibly leave the Vec in an unexpected but otherwise consistent state).
As I understand, the remaining items in vec is leaked due to mem::forget(drainer), What is leaked even more in the example?
Contributor guide
No contributing guide indexed for this repository
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 src/leaking.md and read the paragraph containing “all that does is leak even more.” Clarify what additional data or state is leaked in the example, including the relationship to mem::forget(drainer), then verify that the revised wording resolves the question without changing the technical meaning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100