From 47acc4bd8440b82ee6709221299fe37bde1f9533 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 1 Dec 2017 11:33:42 -0700 Subject: [PATCH] Fix documentation for DecodeUtf16Error Fixes #46307 --- src/libstd_unicode/char.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 buf: Option, } -/// 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 {