Skip to content

Commit 77cdeb0

Browse files
author
tgor
committed
std::string::String.from_utf16 doc fix
1 parent 552bf75 commit 77cdeb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ impl String {
641641
Cow::Owned(res)
642642
}
643643

644-
/// Decode a UTF-16 encoded vector `v` into a `String`, returning `None`
644+
/// Decode a UTF-16 encoded vector `v` into a `String`, returning `Err`
645645
/// if `v` contains any invalid data.
646646
///
647647
/// # Examples

0 commit comments

Comments
 (0)