Skip to content

Commit 863e75f

Browse files
committed
Fixed documentation for finalize->drop change
1 parent 3e265e7 commit 863e75f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2876,13 +2876,13 @@ The kinds are:
28762876
Types with destructors (types that implement `Drop`) can not implement `Copy`.
28772877
`Drop`
28782878
: This is not strictly a kind, but its presence interacts with kinds: the `Drop`
2879-
trait provides a single method `finalize` that takes no parameters, and is run
2879+
trait provides a single method `drop` that takes no parameters, and is run
28802880
when values of the type are dropped. Such a method is called a "destructor",
28812881
and are always executed in "top-down" order: a value is completely destroyed
28822882
before any of the values it owns run their destructors. Only `Send` types
28832883
that do not implement `Copy` can implement `Drop`.
28842884

2885-
> **Note:** The `finalize` method may be renamed in future versions of Rust.
2885+
> **Note:** The `drop` method may be renamed in future versions of Rust.
28862886
28872887
_Default_
28882888
: Types with destructors, closure environments,

0 commit comments

Comments
 (0)