@@ -69,12 +69,11 @@ impl Display for GraphEdge {
6969
7070/// Helper function to return a possible flow operating in the requested year
7171///
72- /// We are interested only on the flows direction, which are always the same for all years. So this
73- /// function checks if the process can be operating in the target year and region and, if so, it
74- /// returns its flows. It considers not only when the process can be commissioned, but also the
75- /// lifetime of the process, since a process can be opperating many years after the commission time
76- /// window is over. If the process cannot be opperating in the target year and region, None is
77- /// returned.
72+ /// We are only interested in the flow directions, which are constant across years. This
73+ /// function checks whether the process can be operating in the target region and year and, if so,
74+ /// returns its flows. It considers both the commission year and the process lifetime, since a
75+ /// process may operate for years after its commission window. If the process cannot be operating
76+ /// in the target region/year, `None` is returned.
7877fn get_flow_for_year (
7978 process : & Process ,
8079 target : ( RegionID , u32 ) ,
@@ -85,7 +84,7 @@ fn get_flow_for_year(
8584 }
8685
8786 // Otherwise we try to find one that operates in the target year. It is assumed that
88- // parameters are defined in the same (region, year) combinations than flows, at least .
87+ // parameters are defined for at least the same (region, year) combinations as flows.
8988 let ( target_region, target_year) = target;
9089 for ( ( region, year) , value) in & process. flows {
9190 if * region != target_region {
0 commit comments