Rollup merge of #137871 - pitaj:rangebounds-is_empty-intersect, r=scottmcm
fix `RangeBounds::is_empty` documentation One-sided ranges are never empty follow-up for https://github.com/rust-lang/rust/pull/137304#pullrequestreview-2646899461
This commit is contained in:
commit
c994a29392
1 changed files with 1 additions and 1 deletions
|
@ -827,7 +827,7 @@ pub trait RangeBounds<T: ?Sized> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns `true` if the range contains no items.
|
/// Returns `true` if the range contains no items.
|
||||||
/// One-sided ranges (`RangeFrom`, etc) always return `true`.
|
/// One-sided ranges (`RangeFrom`, etc) always return `false`.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue