File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ impl CString {
206206 /// Retakes ownership of a CString that was transferred to C.
207207 ///
208208 /// The only appropriate argument is a pointer obtained by calling
209- /// `into_ptr `. The length of the string will be recalculated
209+ /// `into_raw `. The length of the string will be recalculated
210210 /// using the pointer.
211211 #[ unstable( feature = "cstr_memory2" , reason = "recently added" ,
212212 issue = "27769" ) ]
@@ -230,11 +230,11 @@ impl CString {
230230 /// Transfers ownership of the string to a C caller.
231231 ///
232232 /// The pointer must be returned to Rust and reconstituted using
233- /// `from_ptr ` to be properly deallocated. Specifically, one
233+ /// `from_raw ` to be properly deallocated. Specifically, one
234234 /// should *not* use the standard C `free` function to deallocate
235235 /// this string.
236236 ///
237- /// Failure to call `from_ptr ` will lead to a memory leak.
237+ /// Failure to call `from_raw ` will lead to a memory leak.
238238 #[ unstable( feature = "cstr_memory2" , reason = "recently added" ,
239239 issue = "27769" ) ]
240240 #[ deprecated( since = "1.4.0" , reason = "renamed to into_raw" ) ]
You can’t perform that action at this time.
0 commit comments