File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2876,13 +2876,13 @@ The kinds are:
2876
2876
Types with destructors (types that implement ` Drop ` ) can not implement ` Copy ` .
2877
2877
` Drop `
2878
2878
: 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
2880
2880
when values of the type are dropped. Such a method is called a "destructor",
2881
2881
and are always executed in "top-down" order: a value is completely destroyed
2882
2882
before any of the values it owns run their destructors. Only ` Send ` types
2883
2883
that do not implement ` Copy ` can implement ` Drop ` .
2884
2884
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.
2886
2886
2887
2887
_ Default_
2888
2888
: Types with destructors, closure environments,
You can’t perform that action at this time.
0 commit comments