From 0574c1ae8cd7befe8103e9d69279d819b7e3d3ce Mon Sep 17 00:00:00 2001 From: Xylenox <37784637+Xylenox@users.noreply.github.com> Date: Fri, 10 Oct 2025 15:26:54 -0700 Subject: [PATCH 1/2] Update map.rs --- library/alloc/src/collections/btree/map.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/alloc/src/collections/btree/map.rs b/library/alloc/src/collections/btree/map.rs index adcb444d08c66..8386fccffb7ed 100644 --- a/library/alloc/src/collections/btree/map.rs +++ b/library/alloc/src/collections/btree/map.rs @@ -2670,6 +2670,8 @@ impl BTreeMap { /// Passing `Bound::Unbounded` will return a cursor pointing to the /// gap before the smallest key in the map. /// + /// Represents the gap at the beginning of a range with the given bound as it's lower bound. + /// /// # Examples /// /// ``` @@ -2723,6 +2725,8 @@ impl BTreeMap { /// Passing `Bound::Unbounded` will return a cursor pointing to the /// gap before the smallest key in the map. /// + /// Represents the gap at the beginning of a range with the given bound as it's lower bound. + /// /// # Examples /// /// ``` @@ -2793,6 +2797,8 @@ impl BTreeMap { /// Passing `Bound::Unbounded` will return a cursor pointing to the /// gap after the greatest key in the map. /// + /// Represents the gap at the end of a range with the given bound as it's upper bound. + /// /// # Examples /// /// ``` @@ -2846,6 +2852,8 @@ impl BTreeMap { /// Passing `Bound::Unbounded` will return a cursor pointing to the /// gap after the greatest key in the map. /// + /// Represents the gap at the end of a range with the given bound as it's upper bound. + /// /// # Examples /// /// ``` From 5f1d4624cb7d43cdc5acefc547a38d9ee3b120c5 Mon Sep 17 00:00:00 2001 From: Xylenox <37784637+Xylenox@users.noreply.github.com> Date: Fri, 10 Oct 2025 15:27:22 -0700 Subject: [PATCH 2/2] Update set.rs --- library/alloc/src/collections/btree/set.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/alloc/src/collections/btree/set.rs b/library/alloc/src/collections/btree/set.rs index 6e6996bcbd69b..8376a36c133aa 100644 --- a/library/alloc/src/collections/btree/set.rs +++ b/library/alloc/src/collections/btree/set.rs @@ -1309,6 +1309,8 @@ impl BTreeSet { /// Passing `Bound::Unbounded` will return a cursor pointing to the /// gap before the smallest element in the set. /// + /// Represents the gap at the beginning of a range with the given bound as it's lower bound. + /// /// # Examples /// /// ``` @@ -1352,6 +1354,8 @@ impl BTreeSet { /// Passing `Bound::Unbounded` will return a cursor pointing to the /// gap before the smallest element in the set. /// + /// Represents the gap at the beginning of a range with the given bound as it's lower bound. + /// /// # Examples /// /// ``` @@ -1395,6 +1399,8 @@ impl BTreeSet { /// Passing `Bound::Unbounded` will return a cursor pointing to the /// gap after the greatest element in the set. /// + /// Represents the gap at the end of a range with the given bound as it's upper bound. + /// /// # Examples /// /// ``` @@ -1438,6 +1444,8 @@ impl BTreeSet { /// Passing `Bound::Unbounded` will return a cursor pointing to the /// gap after the greatest element in the set. /// + /// Represents the gap at the end of a range with the given bound as it's upper bound. + /// /// # Examples /// /// ```