Rollup merge of #116295 - asquared31415:mem_drop_docs, r=WaffleLapkin
Fix `core::mem::drop` docs inaccuracy r? `@Nilstrieb`
This commit is contained in:
commit
de7053133a
@ -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