Skip to content

Commit 6e61383

Browse files
authored
Rollup merge of #87585 - GuillaumeGomez:char-types-doc, r=joshtriplett
Add missing links for core::char types
2 parents 1757d6b + cf0f502 commit 6e61383

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

library/core/src/char/decode.rs

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ use crate::fmt;
55
use super::from_u32_unchecked;
66

77
/// An iterator that decodes UTF-16 encoded code points from an iterator of `u16`s.
8+
///
9+
/// This `struct` is created by the [`decode_utf16`] method on [`char`]. See its
10+
/// documentation for more.
11+
///
12+
/// [`decode_utf16`]: char::decode_utf16
813
#[stable(feature = "decode_utf16", since = "1.9.0")]
914
#[derive(Clone, Debug)]
1015
pub struct DecodeUtf16<I>
@@ -16,6 +21,8 @@ where
1621
}
1722

1823
/// An error that can be returned when decoding UTF-16 code points.
24+
///
25+
/// This `struct` is created when using the [`DecodeUtf16`] type.
1926
#[stable(feature = "decode_utf16", since = "1.9.0")]
2027
#[derive(Debug, Clone, Eq, PartialEq)]
2128
pub struct DecodeUtf16Error {

0 commit comments

Comments
 (0)