From 94ea5dc5978f85a3ce6c8bf3543df2b35dde7ac1 Mon Sep 17 00:00:00 2001 From: Chris Gregory Date: Wed, 5 Jun 2019 18:21:17 -0700 Subject: [PATCH 1/2] Escape HashMap with backticks in needs_drop docs --- src/libcore/mem/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/mem/mod.rs b/src/libcore/mem/mod.rs index 91449f09936aa..6d578d178dcc6 100644 --- a/src/libcore/mem/mod.rs +++ b/src/libcore/mem/mod.rs @@ -374,7 +374,7 @@ pub fn align_of_val(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. /// /// From 408895d5b3ef3e64775646f70d5a76cacc5093b1 Mon Sep 17 00:00:00 2001 From: Chris Gregory Date: Wed, 5 Jun 2019 18:22:31 -0700 Subject: [PATCH 2/2] Escape needs_drop in the needs_drop documentation --- src/libcore/mem/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/mem/mod.rs b/src/libcore/mem/mod.rs index 6d578d178dcc6..b43ba6ac34032 100644 --- a/src/libcore/mem/mod.rs +++ b/src/libcore/mem/mod.rs @@ -380,7 +380,7 @@ pub fn align_of_val(val: &T) -> usize { /// /// # 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};