about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-01 12:18:12 +0200
committerGitHub <noreply@github.com>2023-10-01 12:18:12 +0200
commitde7053133a32c3c442ba2f34ee84f266fd3ae969 (patch)
tree2178e7f8d1dd268fc9dc2fac3f1f0063222e3eb5
parentcb4e2994c28ebe7a6a6685723573005b38855026 (diff)
parentbc3c445764769fa2f318304c8353d9fba832f466 (diff)
Rollup merge of #116295 - asquared31415:mem_drop_docs, r=WaffleLapkin
Fix `core::mem::drop` docs inaccuracy

r? `@Nilstrieb`
-rw-r--r--library/core/src/mem/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs
index d7abc9a0e23..5244e478018 100644
--- a/library/core/src/mem/mod.rs
+++ b/library/core/src/mem/mod.rs
@@ -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