mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Small fixes to std::path::absolute
docs
This commit is contained in:
parent
474bee7bf5
commit
f6cf103da2
@ -3323,7 +3323,7 @@ impl Error for StripPrefixError {
|
|||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ## Posix paths
|
/// ## POSIX paths
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #[cfg(unix)]
|
/// # #[cfg(unix)]
|
||||||
@ -3369,9 +3369,12 @@ impl Error for StripPrefixError {
|
|||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// For verbatim paths this will simply return the path as given. For other
|
/// For verbatim paths this will simply return the path as given. For other
|
||||||
/// paths this is currently equivalent to calling [`GetFullPathNameW`][windows-path]
|
/// paths this is currently equivalent to calling
|
||||||
/// This may change in the future.
|
/// [`GetFullPathNameW`][windows-path].
|
||||||
///
|
///
|
||||||
|
/// Note that this [may change in the future][changes].
|
||||||
|
///
|
||||||
|
/// [changes]: io#platform-specific-behavior
|
||||||
/// [posix-semantics]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13
|
/// [posix-semantics]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13
|
||||||
/// [windows-path]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfullpathnamew
|
/// [windows-path]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfullpathnamew
|
||||||
#[stable(feature = "absolute_path", since = "1.79.0")]
|
#[stable(feature = "absolute_path", since = "1.79.0")]
|
||||||
|
Loading…
Reference in New Issue
Block a user