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…
x
Reference in New Issue
Block a user