about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Jaszkowiak <p.jaszkow@gmail.com>2025-03-01 14:38:07 -0700
committerPeter Jaszkowiak <p.jaszkow@gmail.com>2025-03-01 14:38:07 -0700
commit596c14ade49d94bd1cfaa26aa34f7ef016f632d6 (patch)
tree94fc4883aa7eb3206d11d0d736efd94274ec1d6e
parent8c392966a013fd8a09e6b78b3c8d6e442bc278e1 (diff)
downloadrust-596c14ade49d94bd1cfaa26aa34f7ef016f632d6.tar.gz
rust-596c14ade49d94bd1cfaa26aa34f7ef016f632d6.zip
fix `RangeBounds::is_empty` documentation
One-sided ranges are never empty
-rw-r--r--library/core/src/ops/range.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ops/range.rs b/library/core/src/ops/range.rs
index e0c442e5292..1935268cda8 100644
--- a/library/core/src/ops/range.rs
+++ b/library/core/src/ops/range.rs
@@ -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
     ///