about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-06-06 13:19:26 +0200
committerGitHub <noreply@github.com>2019-06-06 13:19:26 +0200
commit5f410fe079f7a967180afdbd533772d8d751be6c (patch)
tree9357fa0441bc86713140f731d013117ce281b34f
parentface682c82a64e0f21738d7cb2a6eaa026c207c2 (diff)
parent408895d5b3ef3e64775646f70d5a76cacc5093b1 (diff)
downloadrust-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.rs4
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};