Skip to content

Commit

Permalink
Document the ordering of None vs Some in Option
Browse files Browse the repository at this point in the history
  • Loading branch information
danakj committed Dec 11, 2023
1 parent 0c08f72 commit 5f32eca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sus/option/option.h
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,8 @@ class Option final {
friend constexpr inline bool operator==(const Option<T>& l,
const Option<U>& r) = delete;

/// Compares two options.
/// Compares two options. This function requires that `T` is ordered.
/// An empty Option always compares less than a non-empty Option.
///
/// * Satisfies [`StrongOrd<Option<T>>`]($sus::cmp::StrongOrd) if
/// [`StrongOrd<T>`]($sus::cmp::StrongOrd).
Expand Down

0 comments on commit 5f32eca

Please sign in to comment.