Better doctests for HashMap's into_values and into_keys methods #87591
Labels
A-collections
Area: `std::collections`
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
The current doctests for a few methods don't really test anything when they could. The following changes would:
BTreeMap
, which do include tests like the followingThe current doctest for
HashMap
'sinto_keys
method can be improved to:The current doctest for
HashMap
'sinto_values
method can be improved to:I would submit a pull request, but my computer is broken. Could someone please make these changes?
The text was updated successfully, but these errors were encountered: