Skip to content

Commit 060aedd

Browse files
authored
Rollup merge of #65486 - mathstuf:osstr-doc-typo, r=TimNN
doc: fix typo in OsStrExt and OsStringExt
2 parents 4f84bd4 + fb6d5e6 commit 060aedd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/sys_common/os_str_bytes.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,15 @@ impl Slice {
193193
pub trait OsStringExt {
194194
/// Creates an [`OsString`] from a byte vector.
195195
///
196-
/// See the module docmentation for an example.
196+
/// See the module documentation for an example.
197197
///
198198
/// [`OsString`]: ../../../ffi/struct.OsString.html
199199
#[stable(feature = "rust1", since = "1.0.0")]
200200
fn from_vec(vec: Vec<u8>) -> Self;
201201

202202
/// Yields the underlying byte vector of this [`OsString`].
203203
///
204-
/// See the module docmentation for an example.
204+
/// See the module documentation for an example.
205205
///
206206
/// [`OsString`]: ../../../ffi/struct.OsString.html
207207
#[stable(feature = "rust1", since = "1.0.0")]
@@ -226,14 +226,14 @@ pub trait OsStrExt {
226226
#[stable(feature = "rust1", since = "1.0.0")]
227227
/// Creates an [`OsStr`] from a byte slice.
228228
///
229-
/// See the module docmentation for an example.
229+
/// See the module documentation for an example.
230230
///
231231
/// [`OsStr`]: ../../../ffi/struct.OsStr.html
232232
fn from_bytes(slice: &[u8]) -> &Self;
233233

234234
/// Gets the underlying byte view of the [`OsStr`] slice.
235235
///
236-
/// See the module docmentation for an example.
236+
/// See the module documentation for an example.
237237
///
238238
/// [`OsStr`]: ../../../ffi/struct.OsStr.html
239239
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)