]> git.lizzy.rs Git - rust.git/commitdiff
Fixed documentation for finalize->drop change
authorSteven Fackler <sfackler@gmail.com>
Mon, 1 Jul 2013 00:12:57 +0000 (20:12 -0400)
committerSteven Fackler <sfackler@palantir.com>
Tue, 2 Jul 2013 16:58:18 +0000 (09:58 -0700)
doc/rust.md

index c61cbe6476ce8af468e7a38030111f1b2bd74233..0b413783c35cdb5ae33c5af0ae3319ea462fc192 100644 (file)
@@ -2876,13 +2876,13 @@ The kinds are:
     Types with destructors (types that implement `Drop`) can not implement `Copy`.
 `Drop`
   : This is not strictly a kind, but its presence interacts with kinds: the `Drop`
-    trait provides a single method `finalize` that takes no parameters, and is run
+    trait provides a single method `drop` that takes no parameters, and is run
     when values of the type are dropped. Such a method is called a "destructor",
     and are always executed in "top-down" order: a value is completely destroyed
     before any of the values it owns run their destructors. Only `Send` types
     that do not implement `Copy` can implement `Drop`.
 
-> **Note:** The `finalize` method may be renamed in future versions of Rust.
+> **Note:** The `drop` method may be renamed in future versions of Rust.
 
 _Default_
   : Types with destructors, closure environments,