-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Clarify WTF-8 safety docs #140936
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
base: master
Are you sure you want to change the base?
Clarify WTF-8 safety docs #140936
Conversation
r? @ibraheemdev rustbot has assigned @ibraheemdev. Use |
The comment change looks good. Can you rewrap it to 80 columns, though? There's no reason not to, since you're already touching the whole paragraph. I'm not convinced that the That being said, here are some alternatives that I think would be better than
The last three would import the module like Semantically, I prefer “impl” the most, because these are platform adaptors implementing a common interface. “Inner” works, as they're indeed the inner types of One thing I like about these names over I think it's worth fleshing out name ideas more, but I'm currently leaning towards keeping the current names. |
28b9300
to
8f0522d
Compare
Done!
This seems like it could end up being a bikeshed, and it's a different type of change, so I've dropped that commit. |
This PR is a follow-up to PR #140159, which clarifies
two things:the privateos_str::Slice
type name is easily confused withstd::slice
Happy to bikeshed theOsSlice
name, other alternatives areOsStrSlice
andStrSlice
. Now it's got a distinct name fromstd::slice
, it's easy to search and replace.cc @thaliaarchi @workingjubilee