diff options
| author | Markus Wein <markus.wein@nuclearsquid.com> | 2018-07-23 15:38:15 +0200 |
|---|---|---|
| committer | Markus Wein <markus.wein@nuclearsquid.com> | 2018-07-23 15:38:15 +0200 |
| commit | ed5edcb3186e87715143bbd53ab1dfa69771cbf9 (patch) | |
| tree | ca2ca6041d3f7589cce19bc6f4091bcc31af38c7 /src/libstd | |
| parent | b81ee0b370ebc1a9e15a5c6a68b2201ddbdaa36f (diff) | |
| download | rust-ed5edcb3186e87715143bbd53ab1dfa69771cbf9.tar.gz rust-ed5edcb3186e87715143bbd53ab1dfa69771cbf9.zip | |
Seperate summaries from rest of the comment
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/ffi/c_str.rs | 1 | ||||
| -rw-r--r-- | src/libstd/ffi/os_str.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs index 14ace795819..01558457f6c 100644 --- a/src/libstd/ffi/c_str.rs +++ b/src/libstd/ffi/c_str.rs @@ -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 diff --git a/src/libstd/ffi/os_str.rs b/src/libstd/ffi/os_str.rs index 9b91bd0d41e..9e501a84e05 100644 --- a/src/libstd/ffi/os_str.rs +++ b/src/libstd/ffi/os_str.rs @@ -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 |
