-
Notifications
You must be signed in to change notification settings - Fork 13k
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
str::encode_utf16 should have a doc example #44419
Comments
This seems easy, I'd like to give it a shot. |
Will something like this be okay?
I assumed the most obvious difference between utf8 and utf16 is the length of a non-Ascii string (hence the |
Agreed!
Same, this sounds good to me! |
Add an example of std::str::encode_utf16 Closes rust-lang#44419
Add an example of std::str::encode_utf16 Closes rust-lang#44419
Add an example of std::str::encode_utf16 Closes rust-lang#44419
https://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16
If anyone anyone wants to work on this, just mention it in a comment to prevent duplicate work. If you need any help or have any questions, don't hesitate to ping me :)
The text was updated successfully, but these errors were encountered: