From cf529c767e14f92f791c3c534a27810fb2bae513 Mon Sep 17 00:00:00 2001 From: dylni <46035563+dylni@users.noreply.github.com> Date: Sat, 5 Sep 2020 19:53:35 -0400 Subject: [PATCH] Adjust documentation for slice_check_range --- library/core/src/slice/mod.rs | 2 +- .../src/library-features/slice-check-range.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/doc/unstable-book/src/library-features/slice-check-range.md diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 68977a983aa37..69d9082443de1 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -399,7 +399,7 @@ impl [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>(&self, range: R) -> Range { let start = match range.start_bound() { Bound::Included(&start) => start, diff --git a/src/doc/unstable-book/src/library-features/slice-check-range.md b/src/doc/unstable-book/src/library-features/slice-check-range.md new file mode 100644 index 0000000000000..83e5738cf5412 --- /dev/null +++ b/src/doc/unstable-book/src/library-features/slice-check-range.md @@ -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