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.
This commit is contained in:
Jonathan Brouwer 2026-01-02 19:00:18 +01:00 committed by GitHub
commit 3dc296ad3a
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.