@@ -113,8 +113,8 @@ pub trait UnicodeNormalization<I: Iterator<Item = char>> {
113113/// (compatibility decomposition followed by canonical composition).
114114fn nfkc ( self ) ->Recompositions < I > ;
115115
116- /// A transformation which replaces CJK Compatibility Ideograph codepoints
117- /// with normal forms using Standardized Variation Sequences. This is not
116+ /// A transformation which replaces[ CJK Compatibility Ideograph] codepoints
117+ /// with normal forms using[ Standardized Variation Sequences] . This is not
118118/// part of the canonical or compatibility decomposition algorithms, but
119119/// performing it before those algorithms produces normalized output which
120120/// better preserves the intent of the original text.
@@ -123,10 +123,15 @@ pub trait UnicodeNormalization<I: Iterator<Item = char>> {
123123/// may not immediately help text display as intended, but they at
124124/// least preserve the information in a standardized form, giving
125125/// implementations the option to recognize them.
126+ ///
127+ /// [CJK Compatibility Ideograph]: https://www.unicode.org/glossary/#compatibility_ideograph
128+ /// [Standardized Variation Sequences]: https://www.unicode.org/glossary/#standardized_variation_sequence
126129fn cjk_compat_variants ( self ) ->Replacements < I > ;
127130
128131/// An Iterator over the string with Conjoining Grapheme Joiner characters
129- /// inserted according to the Stream-Safe Text Process (UAX15-D4)
132+ /// inserted according to the Stream-Safe Text Process ([UAX15-D4]).
133+ ///
134+ /// [UAX15-D4]: https://www.unicode.org/reports/tr15/#UAX15-D4
130135fn stream_safe ( self ) ->StreamSafe < I > ;
131136}
132137
@@ -153,7 +158,7 @@ impl<'a> UnicodeNormalization<Chars<'a>> for &'a str {
153158
154159#[ inline]
155160fn cjk_compat_variants ( self ) ->Replacements < Chars < ' a > > {
156- replace :: new_cjk_compat_variants ( self . chars ( ) )
161+ Replacements :: new_cjk_compat_variants ( self . chars ( ) )
157162}
158163
159164#[ inline]
@@ -185,7 +190,7 @@ impl UnicodeNormalization<option::IntoIter<char>> for char {
185190
186191#[ inline]
187192fn cjk_compat_variants ( self ) ->Replacements < option:: IntoIter < char > > {
188- replace :: new_cjk_compat_variants ( Some ( self ) . into_iter ( ) )
193+ Replacements :: new_cjk_compat_variants ( Some ( self ) . into_iter ( ) )
189194}
190195
191196#[ inline]
@@ -217,7 +222,7 @@ impl<I: Iterator<Item = char>> UnicodeNormalization<I> for I {
217222
218223#[ inline]
219224fn cjk_compat_variants ( self ) ->Replacements < I > {
220- replace :: new_cjk_compat_variants ( self )
225+ Replacements :: new_cjk_compat_variants ( self )
221226}
222227
223228#[ inline]