File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments