Skip to content

Commit

Permalink
linkify BTreeSet
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Jul 25, 2024
1 parent 63d7aa0 commit eeb75e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/locale_core/src/langid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ use writeable::Writeable;
/// assert_eq!(li.variants.get(0), Some(&variant!("valencia")));
/// ```
///
/// Using a wrapper to add one of these to a `BTreeSet`:
/// Using a wrapper to add one of these to a [`BTreeSet`]:
///
/// ```no_run
/// use icu::locale::LanguageIdentifier;
Expand All @@ -100,6 +100,7 @@ use writeable::Writeable;
/// let _: BTreeSet<LanguageIdentifierTotalOrd> = unimplemented!();
/// ```
///
/// [`BTreeSet`]: std::collections::BTreeSet
/// [`Unicode BCP47 Language Identifier`]: https://unicode.org/reports/tr35/tr35.html#Unicode_language_identifier
#[derive(Default, PartialEq, Eq, Clone, Hash)]
#[allow(clippy::exhaustive_structs)] // This struct is stable (and invoked by a macro)
Expand Down
3 changes: 2 additions & 1 deletion components/locale_core/src/locale.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ use writeable::Writeable;
/// );
/// ```
///
/// Using a wrapper to add one of these to a `BTreeSet`:
/// Using a wrapper to add one of these to a [`BTreeSet`]:
///
/// ```no_run
/// use icu::locale::Locale;
Expand All @@ -115,6 +115,7 @@ use writeable::Writeable;
/// let _: BTreeSet<LocaleTotalOrd> = unimplemented!();
/// ```
///
/// [`BTreeSet`]: std::collections::BTreeSet
/// [`Unicode Locale Identifier`]: https://unicode.org/reports/tr35/tr35.html#Unicode_locale_identifier
#[derive(Default, PartialEq, Eq, Clone, Hash)]
#[allow(clippy::exhaustive_structs)] // This struct is stable (and invoked by a macro)
Expand Down

0 comments on commit eeb75e1

Please sign in to comment.