From 47b981d772be0820bb842576b702f00dc0d2cf56 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 19 Dec 2023 16:12:30 -0500 Subject: [PATCH 1/2] Nicer docs for _r and _rs literals. --- sus/ops/range_literals.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sus/ops/range_literals.h b/sus/ops/range_literals.h index b3e7ab384..37d3e9a17 100644 --- a/sus/ops/range_literals.h +++ b/sus/ops/range_literals.h @@ -170,10 +170,10 @@ struct RangeLiteralDeducer { } // namespace sus::ops -/// Constructs a literal range that satisfies the -/// [`RangeBounds`]($sus::ops::RangeBounds) concept. +/// Constructs a [`usize`]($sus::num::usize) range from a literal. /// -/// Because `usize` is unsigned, numbers may not be negative. +/// The constructed range satisfies the [`RangeBounds`]($sus::ops::RangeBounds) +/// concept. Because `usize` is unsigned, numbers may not be negative. /// /// The syntax is: /// * `start..end` for a range including start and excluding end. This returns a @@ -201,10 +201,10 @@ constexpr auto operator""_r() { return ::sus::ops::Range<::sus::num::usize>(D.lower, D.upper); } -/// Constructs a literal range that satisfies the -/// [`RangeBounds`]($sus::ops::RangeBounds) concept. +/// Constructs an [`isize`]($sus::num::usize) range from a literal. /// -/// Numbers may be positive or negative. +/// The constructed range satisfies the [`RangeBounds`]($sus::ops::RangeBounds) +/// concept. Numbers may be positive or negative. /// /// The syntax is: /// * `start..end` for a range including start and excluding end. This returns a From 59fe14bb4c8b4f4547b59647b9203c514d27e517 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 19 Dec 2023 16:13:21 -0500 Subject: [PATCH 2/2] Typo --- sus/ops/range_literals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sus/ops/range_literals.h b/sus/ops/range_literals.h index 37d3e9a17..e2942ebd5 100644 --- a/sus/ops/range_literals.h +++ b/sus/ops/range_literals.h @@ -201,7 +201,7 @@ constexpr auto operator""_r() { return ::sus::ops::Range<::sus::num::usize>(D.lower, D.upper); } -/// Constructs an [`isize`]($sus::num::usize) range from a literal. +/// Constructs an [`isize`]($sus::num::isize) range from a literal. /// /// The constructed range satisfies the [`RangeBounds`]($sus::ops::RangeBounds) /// concept. Numbers may be positive or negative.