-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
fn prefix mentioned on std::path::Path documentation #34076
Comments
I would be happy to work with anyone who wants to fix this issue. |
@steveklabnik I'm new to Rust, but I could take on this one. I've been looking and I can't seem to find a drop-in substitute for Would it be better to just remove the whole "In other words..." sentence? I think the first half of that bullet point could be enough to convey the idea. Other than that instance, I don't see anywhere else in the documentation that references Thanks! |
@pwlandoll great! So, it does look like prefix was just removed entirely: #27722 So yes, I would think the "in other words" part being removed would solve the issue 👍 |
Don't worry about it; they are actually calling this |
Great, that works. So for this, what would I do before the pull request? Just a |
Frankly, just removing a non-example line of the documentation shouldn't affect tests at all, so I wouldn't even bother running it. |
Guess I can never be too sure. Pull request it is! |
Issue #34076: Removing reference to removed path.prefix() function In the documentation for `std::path::Path`, there is a [reference](https://doc.rust-lang.org/std/path/struct.Path.html#method.is_absolute) to the `path.prefix()` function which has since been removed. The offending reference is now also removed. First pull request, feedback welcome! r? @steveklabnik
I think this issue has been solved by @pwlandoll's PR. If not, don't hesitate to say it. |
Link: https://doc.rust-lang.org/std/path/struct.Path.html
One example:
"On Windows, a path is absolute if it has a prefix and starts with the root:
c:\windows
is absolute, whilec:temp
and\temp
are not. In other words,path.is_absolute() == path.prefix().is_some() && path.has_root()
."This should be reworded to avoid using
prefix()
, which has since been removed.The text was updated successfully, but these errors were encountered: