about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-05-12 21:14:11 +0200
committerGitHub <noreply@github.com>2019-05-12 21:14:11 +0200
commitb381e52c7c1123936bbf51483788f67fadca9e68 (patch)
treefdc4aa0e7c024116518f7517c436578aaabe344f
parentc0aeaa1bfd5b8b6ebf1b57623e48551a0fe25239 (diff)
parent0fc2cfb66c7de60099386a3cc091e2bbb2b2187a (diff)
downloadrust-b381e52c7c1123936bbf51483788f67fadca9e68.tar.gz
rust-b381e52c7c1123936bbf51483788f67fadca9e68.zip
Rollup merge of #60752 - shiatsumat:minor-typos-hir, r=wesleywiser
Fix minor typos for ItemLocalId

* added comma after 'that is'
* "can be implement" -> "can be implemented"
-rw-r--r--src/librustc/hir/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/hir/mod.rs b/src/librustc/hir/mod.rs
index 9f7fa6c5557..3778324f01a 100644
--- a/src/librustc/hir/mod.rs
+++ b/src/librustc/hir/mod.rs
@@ -126,12 +126,12 @@ mod item_local_id_inner {
     use rustc_macros::HashStable;
     newtype_index! {
         /// An `ItemLocalId` uniquely identifies something within a given "item-like",
-        /// that is within a hir::Item, hir::TraitItem, or hir::ImplItem. There is no
+        /// that is, within a hir::Item, hir::TraitItem, or hir::ImplItem. There is no
         /// guarantee that the numerical value of a given `ItemLocalId` corresponds to
         /// the node's position within the owning item in any way, but there is a
         /// guarantee that the `LocalItemId`s within an owner occupy a dense range of
         /// integers starting at zero, so a mapping that maps all or most nodes within
-        /// an "item-like" to something else can be implement by a `Vec` instead of a
+        /// an "item-like" to something else can be implemented by a `Vec` instead of a
         /// tree or hash map.
         pub struct ItemLocalId {
             derive [HashStable]