Skip to content

Commit 4e90135

Browse files
Tristramgbougue-pe
andauthored
Update editoast/src/views/infra/pathfinding.rs
Co-authored-by: bougue-pe <[email protected]>
1 parent 151a448 commit 4e90135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editoast/src/views/infra/pathfinding.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ fn compute_path(
199199
.clone()
200200
.union(&ending_track.bbox_geo)
201201
.diagonal_length();
202-
// We build an upper bound that is the diagonal of the bounding bex covering start and end
202+
// We build an upper bound that is the diagonal of the bounding box covering start and end
203203
// During the path search, we prune any route that is twice that distance
204204
// We set an upper bound of at least 10 km to avoid problems on very short distances
205205
let mut best_distance = into_cost(best_distance.min(10_000.0));

0 commit comments

Comments
 (0)