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:
Alessio
2026-01-02 14:54:36 +01:00
committed by GitHub
parent bf6b5b9ded
commit bfe591aac4
+1 -1
View File
@@ -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.