Skip to content

Commit

Permalink
Rollup merge of #65486 - mathstuf:osstr-doc-typo, r=TimNN
Browse files Browse the repository at this point in the history
doc: fix typo in OsStrExt and OsStringExt
  • Loading branch information
Centril authored Oct 17, 2019
2 parents 4f84bd4 + fb6d5e6 commit 060aedd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libstd/sys_common/os_str_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,15 @@ impl Slice {
pub trait OsStringExt {
/// Creates an [`OsString`] from a byte vector.
///
/// See the module docmentation for an example.
/// See the module documentation for an example.
///
/// [`OsString`]: ../../../ffi/struct.OsString.html
#[stable(feature = "rust1", since = "1.0.0")]
fn from_vec(vec: Vec<u8>) -> Self;

/// Yields the underlying byte vector of this [`OsString`].
///
/// See the module docmentation for an example.
/// See the module documentation for an example.
///
/// [`OsString`]: ../../../ffi/struct.OsString.html
#[stable(feature = "rust1", since = "1.0.0")]
Expand All @@ -226,14 +226,14 @@ pub trait OsStrExt {
#[stable(feature = "rust1", since = "1.0.0")]
/// Creates an [`OsStr`] from a byte slice.
///
/// See the module docmentation for an example.
/// See the module documentation for an example.
///
/// [`OsStr`]: ../../../ffi/struct.OsStr.html
fn from_bytes(slice: &[u8]) -> &Self;

/// Gets the underlying byte view of the [`OsStr`] slice.
///
/// See the module docmentation for an example.
/// See the module documentation for an example.
///
/// [`OsStr`]: ../../../ffi/struct.OsStr.html
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down

0 comments on commit 060aedd

Please sign in to comment.