Update drop.rs
This commit is contained in:
parent
06fa27d7c8
commit
da9e18b3db
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@
|
|||
pub trait Drop {
|
||||
/// Executes the destructor for this type.
|
||||
///
|
||||
/// This method is called implilcitly when the value goes out of scope,
|
||||
/// This method is called implicitly when the value goes out of scope,
|
||||
/// and cannot be called explicitly (this is compiler error [E0040]).
|
||||
/// However, the [`std::mem::drop`] function in the prelude can be
|
||||
/// used to call the argument's `Drop` implementation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue