Skip to content

Commit

Permalink
Rollup merge of #116295 - asquared31415:mem_drop_docs, r=WaffleLapkin
Browse files Browse the repository at this point in the history
Fix `core::mem::drop` docs inaccuracy

r? `@Nilstrieb`
  • Loading branch information
matthiaskrgr authored Oct 1, 2023
2 parents cb4e299 + bc3c445 commit de70531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de70531

Please sign in to comment.