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:
parent
bf6b5b9ded
commit
bfe591aac4
1 changed files with 1 additions and 1 deletions
|
|
@ -636,7 +636,7 @@ impl CString {
|
|||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue