-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
doc: Alias skip_while with drop_while #72491
Conversation
r? @rust-lang/libs Sorry, this is not my area of specialty! Someone from the libs team should review this. |
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.
I don't think doc(alias) works with trait methods. Or it didn't seem to do anything when I built this locally. Can you share a screenshot?
r? @dtolnay |
Sorry, I overlooked that. cc #50146 Now I use inline doc. But it wouldn't show up when searching. |
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.
I think I would prefer not to have this kind of content in the standard library docs. Once doc(alias) works on trait methods let's go ahead and use that as originally intended.
There is pre-existing one for Option::and_then. I could add a FIXME/TODO to use "doc_alias" feature when it is complete. |
Many other programming languages use
dropwhile
instead ofskip_while
like Rust.For example: