nightly SliceIndex::get_unchecked
, get_unchecked_mut
docs
#122234
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-help-wanted
Call for participation: Help is requested to fix this issue.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Location
https://doc.rust-lang.org/std/slice/trait.SliceIndex.html#tymethod.get_unchecked
https://doc.rust-lang.org/std/slice/trait.SliceIndex.html#tymethod.get_unchecked_mut
Summary
The documentation for these methods state respectively:
However these clearly return pointers rather than references.
Later on they state the following restrictions, which make sense for references but it isn't clear to me that this restriction is necessary for pointers.
At the very least the
s/reference/pointer/
change needs to be made there too.The text was updated successfully, but these errors were encountered: