Skip to content

Commit

Permalink
Rollup merge of rust-lang#56294 - polyfloyd:fix-typo-ffi-doc, r=sfackler
Browse files Browse the repository at this point in the history
Fix a typo in the documentation of std::ffi
  • Loading branch information
pietroalbini committed Nov 28, 2018
2 parents ebefb1a + e63bd91 commit 1a4bb2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@
//! ## On Unix
//!
//! On Unix, [`OsStr`] implements the
//! `std::os::unix:ffi::`[`OsStrExt`][unix.OsStrExt] trait, which
//! `std::os::unix::ffi::`[`OsStrExt`][unix.OsStrExt] trait, which
//! augments it with two methods, [`from_bytes`] and [`as_bytes`].
//! These do inexpensive conversions from and to UTF-8 byte slices.
//!
//! Additionally, on Unix [`OsString`] implements the
//! `std::os::unix:ffi::`[`OsStringExt`][unix.OsStringExt] trait,
//! `std::os::unix::ffi::`[`OsStringExt`][unix.OsStringExt] trait,
//! which provides [`from_vec`] and [`into_vec`] methods that consume
//! their arguments, and take or produce vectors of [`u8`].
//!
Expand Down

0 comments on commit 1a4bb2b

Please sign in to comment.