@@ -20,9 +20,9 @@ pub struct SuccessfulRebase {
2020 pub ( crate ) repo : gix:: Repository ,
2121 /// A mapping of any commits that were rewritten as part of the rebase
2222 pub ( crate ) commit_mapping : HashMap < gix:: ObjectId , gix:: ObjectId > ,
23- /// A mapping between the origional step graph and the new one
23+ /// A mapping between the original step graph and the new one
2424 pub ( crate ) graph_mapping : HashMap < StepGraphIndex , StepGraphIndex > ,
25- /// Any reference edits that need to be commited as a result of the history
25+ /// Any reference edits that need to be committed as a result of the history
2626 /// rewrite
2727 pub ( crate ) ref_edits : Vec < RefEdit > ,
2828 /// The new step graph
@@ -49,7 +49,7 @@ impl Editor {
4949 . collect :: < Vec < _ > > ( ) ,
5050 ) ;
5151
52- // A 1 to 1 mapping between the incoming graph and hte output graph
52+ // A 1 to 1 mapping between the incoming graph and the output graph
5353 let mut graph_mapping: HashMap < StepGraphIndex , StepGraphIndex > = HashMap :: new ( ) ;
5454 // The step graph with updated commit oids
5555 let mut output_graph = StepGraph :: new ( ) ;
@@ -174,7 +174,7 @@ impl Editor {
174174
175175 for e in edges {
176176 let Some ( new_parent) = graph_mapping. get ( & e. target ( ) ) else {
177- bail ! ( "Failed to find cooresponding parent" ) ;
177+ bail ! ( "Failed to find corresponding parent" ) ;
178178 } ;
179179
180180 output_graph. add_edge ( new_idx, * new_parent, e. weight ( ) . clone ( ) ) ;
@@ -233,7 +233,7 @@ fn collect_ordered_parents(graph: &StepGraph, target: StepGraphIndex) -> Vec<Ste
233233 while let Some ( candidate) = potential_parent_edges. pop ( ) {
234234 if let Step :: Pick { .. } = graph[ candidate. target ( ) ] {
235235 parents. push ( candidate. target ( ) ) ;
236- // Don't persue the children
236+ // Don't pursue the children
237237 continue ;
238238 } ;
239239
@@ -370,7 +370,7 @@ mod test {
370370 }
371371
372372 #[ test]
373- fn insertion_order_is_irrelivant ( ) -> Result < ( ) > {
373+ fn insertion_order_is_irrelevant ( ) -> Result < ( ) > {
374374 let mut graph = StepGraph :: new ( ) ;
375375 let a_id = gix:: ObjectId :: from_str ( "1000000000000000000000000000000000000000" ) ?;
376376 let a = graph. add_node ( Step :: Pick {
0 commit comments