From 31378a3b59b7e451d284f028d2c84890faad40a8 Mon Sep 17 00:00:00 2001 From: ripytide Date: Thu, 6 Apr 2023 19:10:41 +0100 Subject: [PATCH] update gaps docs --- src/range_bounds_map.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/range_bounds_map.rs b/src/range_bounds_map.rs index d35ae2c..d8372c6 100644 --- a/src/range_bounds_map.rs +++ b/src/range_bounds_map.rs @@ -543,9 +543,9 @@ where /// /// # Panics /// - /// Panics if the given range is an invalid range. See [`Invalid - /// Ranges`](https://docs.rs/range_bounds_map/latest/range_bounds_map/index.html#Invalid-RangeBounds) - /// for more details. + /// Panics if the given range is an invalid range. See [`Invalid + /// Ranges`](https://docs.rs/range_bounds_map/latest/range_bounds_map/index.html#Invalid-RangeBounds) + /// for more details. /// /// # Examples /// ``` @@ -791,9 +791,8 @@ where /// Returns an iterator of ranges over all the maximally-sized /// gaps in the map that are also within the given `outer_range`. /// - /// To get all possible gaps call `gaps()` with an unbounded - /// `RangeBounds` such as `&(..)` or `&(Bound::Unbounded, - /// Bound::Unbounded)`. + /// To get all possible gaps call `gaps()` with an unbounded range + /// such as `(Bound::Unbounded, Bound::Unbounded)`. /// /// # Panics ///