Skip to content

Commit a0f96d6

Browse files
committed
Address nits.
1 parent 8a29040 commit a0f96d6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/librustc/front/map/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,12 @@ impl<'ast> Map<'ast> {
297297
// NB ^~~~~~~
298298
//
299299
// You would expect that `item.id == id`, but this
300-
// is not always the case. In particular, for
301-
// ViewPath like `use self::{mem, foo}`, we record
300+
// is not always the case. In particular, for a
301+
// ViewPath item like `use self::{mem, foo}`, we
302302
// map the ids for `mem` and `foo` to the
303303
// enclosing view path item. This seems mega super
304-
// ultra wrong, but then who am I to
305-
// judge. -nmatsakis
304+
// ultra wrong, but then who am I to judge?
305+
// -nmatsakis
306306
return DepNode::Hir(def_id);
307307
}
308308

@@ -544,7 +544,7 @@ impl<'ast> Map<'ast> {
544544
}
545545

546546
pub fn expect_item(&self, id: NodeId) -> &'ast Item {
547-
match self.find(id) { // read recorded by `id`
547+
match self.find(id) { // read recorded by `find`
548548
Some(NodeItem(item)) => item,
549549
_ => panic!("expected item, found {}", self.node_to_string(id))
550550
}

0 commit comments

Comments
 (0)