Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Jul 25, 2024
1 parent dd2affe commit 8b268ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/locale_core/src/langid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ impl LanguageIdentifier {
}

/// Compare this [`LanguageIdentifier`] with another [`LanguageIdentifier`] field-by-field.
/// The result is a total ordering sufficient for use in a [`BTreeMap`].
/// The result is a total ordering sufficient for use in a [`BTreeSet`].
///
/// Unlike [`Self::strict_cmp`], this function's ordering may not equal string ordering.
///
Expand Down Expand Up @@ -272,7 +272,7 @@ impl LanguageIdentifier {
/// let _: BTreeSet<LanguageIdentifierTotalOrd> = unimplemented!();
/// ```
///
/// [`BTreeMap`]: alloc::collections::BTreeMap
/// [`BTreeSet`]: alloc::collections::BTreeSet
pub fn total_cmp(&self, other: &Self) -> Ordering {
self.as_tuple().cmp(&other.as_tuple())
}
Expand Down

0 comments on commit 8b268ea

Please sign in to comment.