Skip to content

Commit bfe591a

Browse files
authored
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.
1 parent bf6b5b9 commit bfe591a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/alloc/src/ffi/c_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ impl CString {
636636
Self { inner: v.into_boxed_slice() }
637637
}
638638

639-
/// Attempts to converts a <code>[Vec]<[u8]></code> to a [`CString`].
639+
/// Attempts to convert a <code>[Vec]<[u8]></code> to a [`CString`].
640640
///
641641
/// Runtime checks are present to ensure there is only one nul byte in the
642642
/// [`Vec`], its last element.

0 commit comments

Comments
 (0)