about summary refs log tree commit diff
path: root/src/libstd_unicode
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-12-01 11:33:42 -0700
committerTom Tromey <tom@tromey.com>2017-12-01 11:33:42 -0700
commit47acc4bd8440b82ee6709221299fe37bde1f9533 (patch)
treec154006d066297d5c0a7f4ab96f4a181cc33ed85 /src/libstd_unicode
parent560a5da9f1cc7f67d2fc372925aef18c96c82629 (diff)
downloadrust-47acc4bd8440b82ee6709221299fe37bde1f9533.tar.gz
rust-47acc4bd8440b82ee6709221299fe37bde1f9533.zip
Fix documentation for DecodeUtf16Error
Fixes #46307
Diffstat (limited to 'src/libstd_unicode')
-rw-r--r--src/libstd_unicode/char.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd_unicode/char.rs b/src/libstd_unicode/char.rs
index 0faf5bd9121..04df610d4c9 100644
--- a/src/libstd_unicode/char.rs
+++ b/src/libstd_unicode/char.rs
@@ -1461,7 +1461,7 @@ pub struct DecodeUtf16<I>
     buf: Option<u16>,
 }
 
-/// An iterator that decodes UTF-16 encoded code points from an iterator of `u16`s.
+/// An error that can be returned when decoding UTF-16 code points.
 #[stable(feature = "decode_utf16", since = "1.9.0")]
 #[derive(Debug, Clone, Eq, PartialEq)]
 pub struct DecodeUtf16Error {