Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions library/core/src/ops/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ impl fmt::Debug for RangeFull {
/// The range `start..end` contains all values with `start <= x < end`.
/// It is empty if `start >= end`.
///
/// Note that this type is not suited to represent all possible ranges. For example, `Range<u8>`
/// cannot represent the range that covers all of `u8`. Use [`(Bound<T>, Bound<T>)`][Bound] if you
/// need a type that can store an arbitrary range.
///
/// # Examples
///
/// The `start..end` syntax is a `Range`:
Expand Down
4 changes: 4 additions & 0 deletions library/core/src/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ pub use crate::ops::{RangeFull, RangeTo};
/// The `Range` contains all values with `start <= x < end`.
/// It is empty if `start >= end`.
///
/// Note that this type is not suited to represent all possible ranges. For example, `Range<u8>`
/// cannot represent the range that covers all of `u8`. Use [`(Bound<T>, Bound<T>)`][Bound] if you
/// need a type that can store an arbitrary range.
///
/// # Examples
///
/// ```
Expand Down
Loading