Adjust documentation for slice_check_range
This commit is contained in:
parent
cdc8f0606d
commit
cf529c767e
@ -399,7 +399,7 @@ pub unsafe fn get_unchecked_mut<I>(&mut self, index: I) -> &mut I::Output
|
||||
///
|
||||
/// [`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,
|
||||
|
@ -0,0 +1,10 @@
|
||||
# `slice_check_range`
|
||||
|
||||
The tracking issue for this feature is: [#76393]
|
||||
|
||||
------------------------
|
||||
|
||||
This adds [`slice::check_range`].
|
||||
|
||||
[#76393]: https://github.com/rust-lang/rust/issues/76393
|
||||
[`slice::check_range`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.check_range
|
Loading…
Reference in New Issue
Block a user