Auto merge of #76395 - dylni:adjust-documentation-for-slice-check-range, r=jyn514

Adjust documentation for slice_check_range

Adjust documentation for #76393.
This commit is contained in:
bors
2020-09-07 09:16:46 +00:00
2 changed files with 11 additions and 1 deletions

View File

@@ -398,7 +398,7 @@ impl<T> [T] {
///
/// [`Index::index`]: ops::Index::index
#[track_caller]
#[unstable(feature = "slice_check_range", issue = "none")]
#[unstable(feature = "slice_check_range", issue = "76393")]
pub fn check_range<R: RangeBounds<usize>>(&self, range: R) -> Range<usize> {
let start = match range.start_bound() {
Bound::Included(&start) => start,