mirror of
https://github.com/mfocko/blog.git
synced 2024-12-22 06:01:26 +01:00
algorithms(bf-to-astar): fix typos
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
1930f0207c
commit
e881234412
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue