Seperate summaries from rest of the comment

This commit is contained in:
Markus Wein 2018-07-23 15:38:15 +02:00
parent b81ee0b370
commit ed5edcb318
No known key found for this signature in database
GPG key ID: BC11CC17245EDA9A
2 changed files with 2 additions and 0 deletions

View file

@ -643,6 +643,7 @@ impl fmt::Debug for CString {
#[stable(feature = "cstring_into", since = "1.7.0")]
impl From<CString> for Vec<u8> {
/// Converts a [`CString`] into a [`Vec`]`<u8>`.
///
/// The conversion consumes the [`CString`], and removes the terminating NUL byte.
///
/// [`Vec`]: ../vec/struct.Vec.html

View file

@ -349,6 +349,7 @@ impl OsString {
#[stable(feature = "rust1", since = "1.0.0")]
impl From<String> for OsString {
/// Converts a [`String`] into a [`OsString`].
///
/// The conversion copies the data, and includes an allocation on the heap.
///
/// [`String`]: ../string/struct.String.html