Skip to content

Commit 5f410fe

Browse files
authored
Rollup merge of rust-lang#61571 - czipperz:needs_drop-doc-escape-HashMap, r=Mark-Simulacrum
Escape HashMap with backticks in needs_drop docs
2 parents face682 + 408895d commit 5f410fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/mem/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -374,13 +374,13 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
374374
/// will do a single needs_drop check for all the values.
375375
///
376376
/// Types like Vec therefore just `drop_in_place(&mut self[..])` without using
377-
/// needs_drop explicitly. Types like HashMap, on the other hand, have to drop
377+
/// needs_drop explicitly. Types like `HashMap`, on the other hand, have to drop
378378
/// values one at a time and should use this API.
379379
///
380380
///
381381
/// # Examples
382382
///
383-
/// Here's an example of how a collection might make use of needs_drop:
383+
/// Here's an example of how a collection might make use of `needs_drop`:
384384
///
385385
/// ```
386386
/// use std::{mem, ptr};

0 commit comments

Comments
 (0)