From 1658e4981587aa332ad8b30215b8ba462740816e Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 30 Jun 2013 20:12:57 -0400 Subject: [PATCH 1/2] Fixed documentation for finalize->drop change --- doc/rust.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/rust.md b/doc/rust.md index cc53d7d17a25a..46370f280431d 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -2879,13 +2879,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, From 4f255def5ee95ea0387154414e490f77365a4fd2 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 30 Jun 2013 20:18:34 -0400 Subject: [PATCH 2/2] Removing the rename warning Now that the finalize->drop rename has happened, this hopefully shouldn't end up changing again. --- doc/rust.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/doc/rust.md b/doc/rust.md index 46370f280431d..a1c408ea8b056 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -2885,8 +2885,6 @@ The kinds are: before any of the values it owns run their destructors. Only `Send` types that do not implement `Copy` can implement `Drop`. -> **Note:** The `drop` method may be renamed in future versions of Rust. - _Default_ : Types with destructors, closure environments, and various other _non-first-class_ types,