1
Fork 0

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:
Matthias Krüger 2025-03-02 22:44:26 +01:00 committed by GitHub
commit c994a29392
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -827,7 +827,7 @@ pub trait RangeBounds<T: ?Sized> {
}
/// 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
///