about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-02-08 22:16:42 -0800
committerBrian Anderson <banderson@mozilla.com>2014-02-09 00:17:41 -0800
commitc7710cdf4563533b211a16cb02a9b4cb70ed3ca9 (patch)
tree2c1280bdcad9bdd4a60a1df8dc18e4cae127a9aa /src/doc
parentd433b80e026960b28ba660ebdb09175237e02e05 (diff)
std: Add move_val_init to mem. Replace direct intrinsic usage
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/guide-ffi.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/doc/guide-ffi.md b/src/doc/guide-ffi.md
index eaec482fc9b..e22f30871ba 100644
--- a/src/doc/guide-ffi.md
+++ b/src/doc/guide-ffi.md
@@ -178,7 +178,6 @@ use std::cast;
 use std::libc::{c_void, size_t, malloc, free};
 use std::mem;
 use std::ptr;
-use std::unstable::intrinsics;
 
 // Define a wrapper around the handle returned by the foreign code.
 // Unique<T> has the same semantics as ~T
@@ -200,7 +199,7 @@ impl<T: Send> Unique<T> {
             // `*ptr` is uninitialized, and `*ptr = value` would attempt to destroy it
             // move_val_init moves a value into this memory without
             // attempting to drop the original value.
-            intrinsics::move_val_init(&mut *ptr, value);
+            mem::move_val_init(&mut *ptr, value);
             Unique{ptr: ptr}
         }
     }