We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ffi::CString
1 parent 71b526b commit 9cfa191Copy full SHA for 9cfa191
src/libstd/ffi/c_str.rs
@@ -219,10 +219,10 @@ impl CString {
219
CString { inner: v.into_boxed_slice() }
220
}
221
222
- /// Retakes ownership of a CString that was transferred to C.
+ /// Retakes ownership of a `CString` that was transferred to C.
223
///
224
/// This should only ever be called with a pointer that was earlier
225
- /// obtained by calling `into_raw` on a CString. Additionally, the length
+ /// obtained by calling `into_raw` on a `CString`. Additionally, the length
226
/// of the string will be recalculated from the pointer.
227
#[stable(feature = "cstr_memory", since = "1.4.0")]
228
pub unsafe fn from_raw(ptr: *mut c_char) -> CString {
0 commit comments