Skip to content

Commit 1a49db4

Browse files
authored
examples: remove empty comments (#14986)
1 parent 02d675a commit 1a49db4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/graphs/dijkstra.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn departure_priority<T>(mut prior_queue []T) int {
8585
// give a NODE v, return a list with all adjacents
8686
// Take care, only positive EDGES
8787
fn all_adjacents<T>(g [][]T, v int) []int {
88-
mut temp := []int{} //
88+
mut temp := []int{}
8989
for i in 0 .. (g.len) {
9090
if g[v][i] > 0 {
9191
temp << i
@@ -147,7 +147,7 @@ fn dijkstra(g [][]int, s int) {
147147
if dist[w] > new_dist {
148148
dist[w] = new_dist
149149
updating_priority(mut pq_queue, w, dist[w])
150-
path[w] = v //
150+
path[w] = v
151151
}
152152
}
153153
}

examples/graphs/minimal_spann_tree_prim.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn departure_priority<T>(mut prior_queue []T) int {
8181
// give a NODE v, return a list with all adjacents
8282
// Take care, only positive EDGES
8383
fn all_adjacents<T>(g [][]T, v int) []int {
84-
mut temp := []int{} //
84+
mut temp := []int{}
8585
for i in 0 .. (g.len) {
8686
if g[v][i] > 0 {
8787
temp << i

0 commit comments

Comments
 (0)