diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-06 13:19:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-06 13:19:26 +0200 |
| commit | 5f410fe079f7a967180afdbd533772d8d751be6c (patch) | |
| tree | 9357fa0441bc86713140f731d013117ce281b34f | |
| parent | face682c82a64e0f21738d7cb2a6eaa026c207c2 (diff) | |
| parent | 408895d5b3ef3e64775646f70d5a76cacc5093b1 (diff) | |
| download | rust-5f410fe079f7a967180afdbd533772d8d751be6c.tar.gz rust-5f410fe079f7a967180afdbd533772d8d751be6c.zip | |
Rollup merge of #61571 - czipperz:needs_drop-doc-escape-HashMap, r=Mark-Simulacrum
Escape HashMap with backticks in needs_drop docs
| -rw-r--r-- | src/libcore/mem/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/mem/mod.rs b/src/libcore/mem/mod.rs index 91449f09936..b43ba6ac340 100644 --- a/src/libcore/mem/mod.rs +++ b/src/libcore/mem/mod.rs @@ -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}; |
