mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
library: Fix typo in the documentatio of Cstring::from_vec_with_nul
Fixes the sentence "Attempts to converts a Vec<u8> to a CString.", where "converts" should be in the base form as it is part of the to-infinitive form.
This commit is contained in:
@@ -636,7 +636,7 @@ unsafe fn _from_vec_with_nul_unchecked(v: Vec<u8>) -> Self {
|
||||
Self { inner: v.into_boxed_slice() }
|
||||
}
|
||||
|
||||
/// Attempts to converts a <code>[Vec]<[u8]></code> to a [`CString`].
|
||||
/// Attempts to convert a <code>[Vec]<[u8]></code> to a [`CString`].
|
||||
///
|
||||
/// Runtime checks are present to ensure there is only one nul byte in the
|
||||
/// [`Vec`], its last element.
|
||||
|
||||
Reference in New Issue
Block a user