From 9cfa1916fa06fa5fa809d6d7807a6f978e35c67d Mon Sep 17 00:00:00 2001 From: Dirk Gadsden Date: Wed, 27 Jan 2016 15:07:10 -0800 Subject: Fix formatting in documentation of `ffi::CString` --- src/libstd/ffi/c_str.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs index 4c3b77402e4..ee744b868dd 100644 --- a/src/libstd/ffi/c_str.rs +++ b/src/libstd/ffi/c_str.rs @@ -219,10 +219,10 @@ impl CString { CString { inner: v.into_boxed_slice() } } - /// Retakes ownership of a CString that was transferred to C. + /// Retakes ownership of a `CString` that was transferred to C. /// /// This should only ever be called with a pointer that was earlier - /// obtained by calling `into_raw` on a CString. Additionally, the length + /// obtained by calling `into_raw` on a `CString`. Additionally, the length /// of the string will be recalculated from the pointer. #[stable(feature = "cstr_memory", since = "1.4.0")] pub unsafe fn from_raw(ptr: *mut c_char) -> CString { -- cgit 1.4.1-3-g733a5