]> git.lizzy.rs Git - rust.git/blobdiff - doc/tutorial-ffi.md
Change finalize -> drop.
[rust.git] / doc / tutorial-ffi.md
index d3c682ce1adcd293dbc82d720ab52a8815dddf66..346112e655baf2f5367f3f755cc927924e08ddb0 100644 (file)
@@ -183,7 +183,7 @@ impl<T: Owned> Unique<T> {
 
 #[unsafe_destructor]
 impl<T: Owned> Drop for Unique<T> {
-    fn finalize(&self) {
+    fn drop(&self) {
         unsafe {
             let x = intrinsics::init(); // dummy value to swap in
             // moving the object out is needed to call the destructor