diff options
| author | athulappadan <a4athulappadan@gmail.com> | 2016-09-11 22:58:01 +0530 |
|---|---|---|
| committer | athulappadan <a4athulappadan@gmail.com> | 2016-09-11 22:58:01 +0530 |
| commit | 41881e85bd832127f2a6eee5821eaae353dea281 (patch) | |
| tree | 730da8b3d9bd50eec2c578ae76e9eca931942bb5 /src/libstd/ffi | |
| parent | 49e77dbf25ed6526fb5d37c32e55797fb04522f0 (diff) | |
| download | rust-41881e85bd832127f2a6eee5821eaae353dea281.tar.gz rust-41881e85bd832127f2a6eee5821eaae353dea281.zip | |
Documentation for default types modified
Diffstat (limited to 'src/libstd/ffi')
| -rw-r--r-- | src/libstd/ffi/c_str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs index 044112ea136..0f7dc3889f0 100644 --- a/src/libstd/ffi/c_str.rs +++ b/src/libstd/ffi/c_str.rs @@ -339,7 +339,7 @@ impl<'a> Default for &'a CStr { #[stable(feature = "cstr_default", since = "1.10.0")] impl Default for CString { - /// Creates a new `CString`, by calling the `Default` of `CStr`, and then owns it. + /// Creates an empty `CString`. fn default() -> CString { let a: &CStr = Default::default(); a.to_owned() |
