Skip to content

Commit

Permalink
Rollup merge of rust-lang#61571 - czipperz:needs_drop-doc-escape-Hash…
Browse files Browse the repository at this point in the history
…Map, r=Mark-Simulacrum

Escape HashMap with backticks in needs_drop docs
  • Loading branch information
Centril committed Jun 6, 2019
2 parents face682 + 408895d commit 5f410fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,13 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
/// will do a single needs_drop check for all the values.
///
/// Types like Vec therefore just `drop_in_place(&mut self[..])` without using
/// needs_drop explicitly. Types like HashMap, on the other hand, have to drop
/// needs_drop explicitly. Types like `HashMap`, on the other hand, have to drop
/// values one at a time and should use this API.
///
///
/// # Examples
///
/// Here's an example of how a collection might make use of needs_drop:
/// Here's an example of how a collection might make use of `needs_drop`:
///
/// ```
/// use std::{mem, ptr};
Expand Down

0 comments on commit 5f410fe

Please sign in to comment.