File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ where
118
118
node_impls. contains ( & more_special) ,
119
119
) {
120
120
( true , true ) => {
121
- // but how do we get indices for l and m?
121
+ // get existing indices for less_special and more_special
122
122
let l = forest
123
123
. node_indices ( )
124
124
. find ( |i| forest[ * i] == less_special)
@@ -131,6 +131,7 @@ where
131
131
}
132
132
( true , false ) => {
133
133
let m = forest. add_node ( more_special) ;
134
+ // get existing index for less_special
134
135
let l = forest
135
136
. node_indices ( )
136
137
. find ( |i| forest[ * i] == less_special)
@@ -139,6 +140,7 @@ where
139
140
}
140
141
( false , true ) => {
141
142
let l = forest. add_node ( less_special) ;
143
+ // get existing index for more_special
142
144
let m = forest
143
145
. node_indices ( )
144
146
. find ( |i| forest[ * i] == more_special)
You can’t perform that action at this time.
0 commit comments