1
Fork 0

Removed direct field usage of RangeInclusive in rustc itself.

This commit is contained in:
kennytm 2018-04-06 05:21:47 +08:00
parent fba903a435
commit c916ee8511
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C
13 changed files with 45 additions and 48 deletions

View file

@ -318,7 +318,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
/// # Examples
///
/// ```
/// #![feature(inclusive_range_fields)]
/// #![feature(inclusive_range_methods)]
///
/// assert_eq!((3..=5), std::ops::RangeInclusive::new(3, 5));
/// assert_eq!(3 + 4 + 5, (3..=5).sum());