From 77cdeb043766502618891be1973e9d70be29ffe3 Mon Sep 17 00:00:00 2001 From: tgor Date: Fri, 29 Jan 2016 02:13:34 +0300 Subject: [PATCH] std::string::String.from_utf16 doc fix --- src/libcollections/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index d9cbc4488fca7..97c12043e7634 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -641,7 +641,7 @@ impl String { Cow::Owned(res) } - /// Decode a UTF-16 encoded vector `v` into a `String`, returning `None` + /// Decode a UTF-16 encoded vector `v` into a `String`, returning `Err` /// if `v` contains any invalid data. /// /// # Examples