Rollup merge of #116295 - asquared31415:mem_drop_docs, r=WaffleLapkin

Fix `core::mem::drop` docs inaccuracy

r? `@Nilstrieb`
This commit is contained in:
Matthias Krüger 2023-10-01 12:18:12 +02:00 committed by GitHub
commit de7053133a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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