-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Add "memset" as doc alias to slice::fill() #79229
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
be172b2
to
7a3b331
Compare
In general, it can be very different to a |
That's true, but for the cases where you could use |
Yeah, although even in those cases, from the perspective of a C programmer, I guess the question is whether doc aliases are expected to be used only for "actual aliases" or also for similar/related functions. |
That's something I can't decide, but the same also applies to In both cases it would've saved me some time in the past if that alias was there when I couldn't remember how that slice function was called again. |
#79213 (comment) is doing the same change (and others). |
Note that documentation aliases are intended to aid discoverability. It seems to me like its fine to add "you might have success with this" kinds of not-exact-replacements too. |
@bors r+ rollup |
📌 Commit 7a3b331 has been approved by |
☀️ Test successful - checks-actions |
Similar to 53f969d and should make it easier for people coming from C to find this function.