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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.