-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Improve documentation for the from_utf8 family #28812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
r=me |
13cf156
to
f6a8b06
Compare
@bors: r=brson rollup |
📌 Commit f6a8b06 has been approved by |
/// (`&[u8]`) is made of bytes, so this function converts between the two. | ||
/// Not all byte slices are valid string slices, however: `&str` requires | ||
/// that it is valid UTF-8. During this conversion, `from_utf8_lossy()` | ||
/// will replace any invalid UTF-8 sequences are replaced with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"will replace any invalid UTF-8 sequences are replaced with".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahhh nice catch
f6a8b06
to
4d73da9
Compare
@bors: r=brson rollup |
📌 Commit 4d73da9 has been approved by |
Our docs were very basic for the various versions of from_utf8, so this commit beefs them up. It also improves docs for the &str variant's error, Utf8Error.
…docs, r=brson Our docs were very basic for the various versions of from_utf8, so this commit beefs them up. It also improves docs for the &str variant's error, Utf8Error.
…docs, r=brson Our docs were very basic for the various versions of from_utf8, so this commit beefs them up. It also improves docs for the &str variant's error, Utf8Error.
Our docs were very basic for the various versions of from_utf8, so
this commit beefs them up.
It also improves docs for the &str variant's error, Utf8Error.