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
1 changed files with 2 additions and 2 deletions
|
@ -1467,7 +1467,7 @@ impl<T: ?Sized + AsRef<OsStr>> From<&T> for PathBuf {
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
impl From<OsString> for PathBuf {
|
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.
|
/// This conversion does not allocate or copy memory.
|
||||||
#[inline]
|
#[inline]
|
||||||
|
@ -1478,7 +1478,7 @@ impl From<OsString> for PathBuf {
|
||||||
|
|
||||||
#[stable(feature = "from_path_buf_for_os_string", since = "1.14.0")]
|
#[stable(feature = "from_path_buf_for_os_string", since = "1.14.0")]
|
||||||
impl From<PathBuf> for OsString {
|
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.
|
/// This conversion does not allocate or copy memory.
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue