@@ -128,7 +128,7 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
128128 /// The range is empty if either side is incomparable:
129129 ///
130130 /// ```
131- /// #![feature(range_is_empty,inclusive_range_syntax )]
131+ /// #![feature(range_is_empty)]
132132 ///
133133 /// use std::f32::NAN;
134134 /// assert!(!(3.0..5.0).is_empty());
@@ -283,8 +283,6 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
283283/// # Examples
284284///
285285/// ```
286- /// #![feature(inclusive_range_syntax)]
287- ///
288286/// assert_eq!((3..=5), std::ops::RangeInclusive { start: 3, end: 5 });
289287/// assert_eq!(3 + 4 + 5, (3..=5).sum());
290288///
@@ -316,7 +314,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
316314 /// # Examples
317315 ///
318316 /// ```
319- /// #![feature(range_contains,inclusive_range_syntax )]
317+ /// #![feature(range_contains)]
320318 ///
321319 /// assert!(!(3..=5).contains(2));
322320 /// assert!( (3..=5).contains(3));
@@ -337,7 +335,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
337335 /// # Examples
338336 ///
339337 /// ```
340- /// #![feature(range_is_empty,inclusive_range_syntax )]
338+ /// #![feature(range_is_empty)]
341339 ///
342340 /// assert!(!(3..=5).is_empty());
343341 /// assert!(!(3..=3).is_empty());
@@ -347,7 +345,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
347345 /// The range is empty if either side is incomparable:
348346 ///
349347 /// ```
350- /// #![feature(range_is_empty,inclusive_range_syntax )]
348+ /// #![feature(range_is_empty)]
351349 ///
352350 /// use std::f32::NAN;
353351 /// assert!(!(3.0..=5.0).is_empty());
@@ -358,7 +356,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
358356 /// This method returns `true` after iteration has finished:
359357 ///
360358 /// ```
361- /// #![feature(range_is_empty,inclusive_range_syntax )]
359+ /// #![feature(range_is_empty)]
362360 ///
363361 /// let mut r = 3..=5;
364362 /// for _ in r.by_ref() {}
@@ -381,16 +379,13 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
381379/// The `..=end` syntax is a `RangeToInclusive`:
382380///
383381/// ```
384- /// #![feature(inclusive_range_syntax)]
385382/// assert_eq!((..=5), std::ops::RangeToInclusive{ end: 5 });
386383/// ```
387384///
388385/// It does not have an [`IntoIterator`] implementation, so you can't use it in a
389386/// `for` loop directly. This won't compile:
390387///
391388/// ```compile_fail,E0277
392- /// #![feature(inclusive_range_syntax)]
393- ///
394389/// // error[E0277]: the trait bound `std::ops::RangeToInclusive<{integer}>:
395390/// // std::iter::Iterator` is not satisfied
396391/// for i in ..=5 {
@@ -402,8 +397,6 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
402397/// array elements up to and including the index indicated by `end`.
403398///
404399/// ```
405- /// #![feature(inclusive_range_syntax)]
406- ///
407400/// let arr = [0, 1, 2, 3];
408401/// assert_eq!(arr[ ..=2], [0,1,2 ]); // RangeToInclusive
409402/// assert_eq!(arr[1..=2], [ 1,2 ]);
@@ -434,7 +427,7 @@ impl<Idx: PartialOrd<Idx>> RangeToInclusive<Idx> {
434427 /// # Examples
435428 ///
436429 /// ```
437- /// #![feature(range_contains,inclusive_range_syntax )]
430+ /// #![feature(range_contains)]
438431 ///
439432 /// assert!( (..=5).contains(-1_000_000_000));
440433 /// assert!( (..=5).contains(5));
0 commit comments