Skip to content

Commit

Permalink
Fix formatting in documentation of ffi::CString
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk committed Jan 27, 2016
1 parent 71b526b commit 9cfa191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/ffi/c_str.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 9cfa191

Please sign in to comment.