Skip to content

Commit de70531

Browse files
authored
Rollup merge of rust-lang#116295 - asquared31415:mem_drop_docs, r=WaffleLapkin
Fix `core::mem::drop` docs inaccuracy r? `@Nilstrieb`
2 parents cb4e299 + bc3c445 commit de70531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ pub const fn replace<T>(dest: &mut T, src: T) -> T {
930930
/// This function is not magic; it is literally defined as
931931
///
932932
/// ```
933-
/// pub fn drop<T>(_x: T) { }
933+
/// pub fn drop<T>(_x: T) {}
934934
/// ```
935935
///
936936
/// Because `_x` is moved into the function, it is automatically dropped before

0 commit comments

Comments
 (0)