Skip to content

Commit 6391ef4

Browse files
committed
Fix incorrect comment about contents of a Node.
1 parent ac061dc commit 6391ef4

File tree

1 file changed

+5
-5
lines changed
  • src/librustc_data_structures/obligation_forest

1 file changed

+5
-5
lines changed

src/librustc_data_structures/obligation_forest/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@
6666
//! For the most part, comments specific to the implementation are in the
6767
//! code. This file only contains a very high-level overview. Basically,
6868
//! the forest is stored in a vector. Each element of the vector is a node
69-
//! in some tree. Each node in the vector has the index of an (optional)
70-
//! parent and (for convenience) its root (which may be itself). It also
71-
//! has a current state, described by `NodeState`. After each
72-
//! processing step, we compress the vector to remove completed and error
73-
//! nodes, which aren't needed anymore.
69+
//! in some tree. Each node in the vector has the index of its dependents,
70+
//! including the first dependent which is known as the parent. It also
71+
//! has a current state, described by `NodeState`. After each processing
72+
//! step, we compress the vector to remove completed and error nodes, which
73+
//! aren't needed anymore.
7474
7575
use crate::fx::{FxHashMap, FxHashSet};
7676
use crate::indexed_vec::Idx;

0 commit comments

Comments
 (0)