Seperate summaries from rest of the comment · rust-lang/rust@ed5edcb (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -643,6 +643,7 @@ impl fmt::Debug for CString {
643 643 #[stable(feature = "cstring_into", since = "1.7.0")]
644 644 impl From<CString> for Vec<u8> {
645 645 /// Converts a [`CString`] into a [`Vec`]``.
646 + ///
646 647 /// The conversion consumes the [`CString`], and removes the terminating NUL byte.
647 648 ///
648 649 /// [`Vec`]: ../vec/struct.Vec.html
Original file line number Diff line number Diff line change
@@ -349,6 +349,7 @@ impl OsString {
349 349 #[stable(feature = "rust1", since = "1.0.0")]
350 350 impl From<String> for OsString {
351 351 /// Converts a [`String`] into a [`OsString`].
352 + ///
352 353 /// The conversion copies the data, and includes an allocation on the heap.
353 354 ///
354 355 /// [`String`]: ../string/struct.String.html