Apply suggestions from code review
More links, one more occurrence of “a OsString” Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
This commit is contained in:
parent
f5e7dbb20a
commit
7509aa108c
@ -1467,7 +1467,7 @@ impl<T: ?Sized + AsRef<OsStr>> From<&T> for PathBuf {
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl From<OsString> for PathBuf {
|
||||
/// Converts a [`OsString`] into a [`PathBuf`]
|
||||
/// Converts an [`OsString`] into a [`PathBuf`]
|
||||
///
|
||||
/// This conversion does not allocate or copy memory.
|
||||
#[inline]
|
||||
@ -1478,7 +1478,7 @@ impl From<OsString> for PathBuf {
|
||||
|
||||
#[stable(feature = "from_path_buf_for_os_string", since = "1.14.0")]
|
||||
impl From<PathBuf> for OsString {
|
||||
/// Converts a [`PathBuf`] into a [`OsString`]
|
||||
/// Converts a [`PathBuf`] into an [`OsString`]
|
||||
///
|
||||
/// This conversion does not allocate or copy memory.
|
||||
#[inline]
|
||||
|
Loading…
x
Reference in New Issue
Block a user