Skip to content

Commit 3dc296a

Browse files
Rollup merge of #150594 - CieriA:patch-4, r=Mark-Simulacrum
Fix typo in the docs of `CString::from_vec_with_nul` This PR fixes the sentence "Attempts to converts a Vec<u8> to a CString." in the documentation of the method `CString::from_vec_with_nul` (line 639). This is because "converts" in that sentence should form a to-infinitive form, and therefore should be in its base form.
2 parents 9c6a4b0 + bfe591a commit 3dc296a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)