about summary refs log tree commit diff
path: root/doc/tutorial-ffi.md
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-05-31 10:21:29 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-05-31 10:31:26 -0400
commit29aba8033afa4cab0261c82d5a4eded4b79af656 (patch)
tree863de7278108500a2dd1dd24d433128fbdfed19d /doc/tutorial-ffi.md
parent030f471f26dbb6642c54a1e12ce63f7989db01ab (diff)
downloadrust-29aba8033afa4cab0261c82d5a4eded4b79af656.tar.gz
rust-29aba8033afa4cab0261c82d5a4eded4b79af656.zip
mv the raw pointer {swap,replace}_ptr to std::ptr
Diffstat (limited to 'doc/tutorial-ffi.md')
-rw-r--r--doc/tutorial-ffi.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial-ffi.md b/doc/tutorial-ffi.md
index 88f2f374cf5..ceaf30bdb8f 100644
--- a/doc/tutorial-ffi.md
+++ b/doc/tutorial-ffi.md
@@ -188,7 +188,7 @@ impl<T: Owned> Drop for Unique<T> {
         unsafe {
             let mut x = intrinsics::init(); // dummy value to swap in
             // moving the object out is needed to call the destructor
-            util::replace_ptr(self.ptr, x);
+            ptr::replace_ptr(self.ptr, x);
             free(self.ptr as *c_void)
         }
     }