mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
mem::drop docs
This commit is contained in:
parent
05c622138c
commit
bc3c445764
@ -930,7 +930,7 @@ pub const fn replace<T>(dest: &mut T, src: T) -> T {
|
||||
/// This function is not magic; it is literally defined as
|
||||
///
|
||||
/// ```
|
||||
/// pub fn drop<T>(_x: T) { }
|
||||
/// pub fn drop<T>(_x: T) {}
|
||||
/// ```
|
||||
///
|
||||
/// Because `_x` is moved into the function, it is automatically dropped before
|
||||
|
Loading…
Reference in New Issue
Block a user