Skip to content

Commit 9cfa191

Browse files
committed
Fix formatting in documentation of ffi::CString
1 parent 71b526b commit 9cfa191

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/ffi/c_str.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ impl CString {
219219
CString { inner: v.into_boxed_slice() }
220220
}
221221

222-
/// Retakes ownership of a CString that was transferred to C.
222+
/// Retakes ownership of a `CString` that was transferred to C.
223223
///
224224
/// This should only ever be called with a pointer that was earlier
225-
/// obtained by calling `into_raw` on a CString. Additionally, the length
225+
/// obtained by calling `into_raw` on a `CString`. Additionally, the length
226226
/// of the string will be recalculated from the pointer.
227227
#[stable(feature = "cstr_memory", since = "1.4.0")]
228228
pub unsafe fn from_raw(ptr: *mut c_char) -> CString {

0 commit comments

Comments
 (0)