Skip to content

Commit 958abd0

Browse files
committed
Update String::to_string_lossy doc
1 parent 92a8203 commit 958abd0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/string.rs

+4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ impl String {
5555
///
5656
/// Any non-Unicode sequences are replaced with [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD].
5757
///
58+
/// This method returns [`StdString`] instead of [`Cow<'_, str>`] because lifetime cannot be
59+
/// bound to a weak Lua object.
60+
///
5861
/// [U+FFFD]: std::char::REPLACEMENT_CHARACTER
62+
/// [`Cow<'_, str>`]: std::borrow::Cow
5963
///
6064
/// # Examples
6165
///

0 commit comments

Comments
 (0)