diff --git a/components/locale_core/src/langid.rs b/components/locale_core/src/langid.rs index 6b4a6fd8b2c..bb70e415987 100644 --- a/components/locale_core/src/langid.rs +++ b/components/locale_core/src/langid.rs @@ -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; @@ -100,6 +100,7 @@ use writeable::Writeable; /// let _: BTreeSet = 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) diff --git a/components/locale_core/src/locale.rs b/components/locale_core/src/locale.rs index 4f55c360cc8..229f78a2f3a 100644 --- a/components/locale_core/src/locale.rs +++ b/components/locale_core/src/locale.rs @@ -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; @@ -115,6 +115,7 @@ use writeable::Writeable; /// let _: BTreeSet = 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)