Skip to content

Commit

Permalink
Auto merge of rust-lang#76395 - dylni:adjust-documentation-for-slice-…
Browse files Browse the repository at this point in the history
…check-range, r=jyn514

Adjust documentation for slice_check_range

Adjust documentation for rust-lang#76393.
  • Loading branch information
bors committed Sep 7, 2020
2 parents e114d62 + cf529c7 commit f76eda3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 10 additions & 0 deletions src/doc/unstable-book/src/library-features/slice-check-range.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f76eda3

Please sign in to comment.