Skip to content

Commit e195d25

Browse files
committed
fix a couple issues
1 parent e2bf4c2 commit e195d25

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ TEMPLATES := $(wildcard templates/*.tmpl)
33
GO ?= go
44
.PHONY: run runall test build clean start help
55

6+
.DEFAULT_GOAL := build
7+
68
run.go: $(GOFILES) $(TEMPLATES)
79
$(GO) generate
810

utils/dijkstra.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (b *DijkstraSearch[T]) Run(g WeightedGraph[T]) (T, error) {
131131
}
132132
}
133133

134-
return initState, BFSNotFound
134+
return initState, DijkstraNotFound
135135
}
136136

137137
// GetPath returns the shortest from the starting node to the given node.

utils/point.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (p Point) Left() Point {
4343
return Point{-p.Y, p.X}
4444
}
4545

46-
// Return manhattan magnitude (abs(x)+abs(y))
46+
// Return manhattan distance (abs(x)+abs(y))
4747
func (p Point) Manhattan() int {
4848
return abs(p.X) + abs(p.Y)
4949
}

0 commit comments

Comments
 (0)