We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b81ee0b commit ed5edcbCopy full SHA for ed5edcb
src/libstd/ffi/c_str.rs
@@ -643,6 +643,7 @@ impl fmt::Debug for CString {
643
#[stable(feature = "cstring_into", since = "1.7.0")]
644
impl From<CString> for Vec<u8> {
645
/// Converts a [`CString`] into a [`Vec`]`<u8>`.
646
+ ///
647
/// The conversion consumes the [`CString`], and removes the terminating NUL byte.
648
///
649
/// [`Vec`]: ../vec/struct.Vec.html
src/libstd/ffi/os_str.rs
@@ -349,6 +349,7 @@ impl OsString {
349
#[stable(feature = "rust1", since = "1.0.0")]
350
impl From<String> for OsString {
351
/// Converts a [`String`] into a [`OsString`].
352
353
/// The conversion copies the data, and includes an allocation on the heap.
354
355
/// [`String`]: ../string/struct.String.html
0 commit comments