Seperate summaries from rest of the comment
This commit is contained in:
parent
b81ee0b370
commit
ed5edcb318
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue