Document the behavior of creating empty subslice at end of slice #60783
Labels
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-api
Relevant to the library API team, which will review and decide on the PR/issue.
Creating an empty subslice at the end of a slice succeeds:
&slice[slice.len()..]
, however this doesn't appear to be documented in the slice documentation.From some searching, I found efforts to document this behavior, including #32183, however this documentation doesn't seem to appear in slice's doc page or the index function's doc page.
The place I originally looked was on slice's
get
function.This might be related to rustdoc omitting some documentation, however #31821 (comment) says to file specific issues, so here's a specific issue :-).
The text was updated successfully, but these errors were encountered: