@@ -230,11 +230,11 @@ impl CString {
230
230
/// Transfers ownership of the string to a C caller.
231
231
///
232
232
/// The pointer must be returned to Rust and reconstituted using
233
- /// `from_raw ` to be properly deallocated. Specifically, one
233
+ /// `from_ptr ` to be properly deallocated. Specifically, one
234
234
/// should *not* use the standard C `free` function to deallocate
235
235
/// this string.
236
236
///
237
- /// Failure to call `from_raw ` will lead to a memory leak.
237
+ /// Failure to call `from_ptr ` will lead to a memory leak.
238
238
#[ unstable( feature = "cstr_memory2" , reason = "recently added" ,
239
239
issue = "27769" ) ]
240
240
#[ deprecated( since = "1.4.0" , reason = "renamed to into_raw" ) ]
@@ -245,11 +245,11 @@ impl CString {
245
245
/// Transfers ownership of the string to a C caller.
246
246
///
247
247
/// The pointer must be returned to Rust and reconstituted using
248
- /// `from_ptr ` to be properly deallocated. Specifically, one
248
+ /// `from_raw ` to be properly deallocated. Specifically, one
249
249
/// should *not* use the standard C `free` function to deallocate
250
250
/// this string.
251
251
///
252
- /// Failure to call `from_ptr ` will lead to a memory leak.
252
+ /// Failure to call `from_raw ` will lead to a memory leak.
253
253
#[ stable( feature = "cstr_memory" , since = "1.4.0" ) ]
254
254
pub fn into_raw ( self ) -> * mut libc:: c_char {
255
255
Box :: into_raw ( self . inner ) as * mut libc:: c_char
0 commit comments