Skip to content

Commit 85b4f4b

Browse files
committed
docs: small docs changes
1 parent d1dd7c9 commit 85b4f4b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/range.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl<V: Version> Range<V> {
8787
}
8888
}
8989

90-
/// Construct a simple range from anything that impls `RangeBounds` like `v1..v2`
90+
/// Construct a simple range from anything that impls [RangeBounds] like `v1..v2`.
9191
pub fn from_range_bounds<R, IV>(bounds: R) -> Self
9292
where
9393
R: RangeBounds<IV>,
@@ -287,10 +287,11 @@ impl<V: Version> Range<V> {
287287
self.segments.first().map(|(start, _)| start).cloned()
288288
}
289289

290-
/// Conver to somthing that can be used with BTreeMap::range
290+
/// Convert to something that can be used with
291+
/// [BTreeMap::range](std::collections::BTreeMap::range).
291292
/// All versions contained in self, will be in the output,
292293
/// but there may be versions in the output that are not contained in self.
293-
/// returns None if the range is empty.
294+
/// Returns None if the range is empty.
294295
pub fn bounding_range(&self) -> Option<(Bound<&V>, Bound<&V>)> {
295296
self.segments.first().map(|(start, _)| {
296297
let end = {

0 commit comments

Comments
 (0)