From e88123441275680f3b37d9d6166168926459bd04 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sat, 6 Jan 2024 17:28:16 +0100 Subject: [PATCH] algorithms(bf-to-astar): fix typos Signed-off-by: Matej Focko --- algorithms/11-paths/2024-01-01-bf-to-astar/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/algorithms/11-paths/2024-01-01-bf-to-astar/index.md b/algorithms/11-paths/2024-01-01-bf-to-astar/index.md index 4987cbb..92a28d6 100644 --- a/algorithms/11-paths/2024-01-01-bf-to-astar/index.md +++ b/algorithms/11-paths/2024-01-01-bf-to-astar/index.md @@ -107,8 +107,8 @@ struct graph { auto [ux, uy] = u; auto [vx, vy] = v; - auto hd = std::abs(ux - vx) + std::abs(uy - vy); - switch (hd) { + auto md = std::abs(ux - vx) + std::abs(uy - vy); + switch (md) { // ‹u = v›; staying on the same cell case 0: return 0;