Skip to content

Commit b513c03

Browse files
authored
Update simann_example.swift
Corrected definition where shuffle() was invoking self.shuffle() instead of self.tour.shuffle(), which would left the example in a infinite loop of shuffle() invocation
1 parent 942064d commit b513c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Simulated annealing/simann_example.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ extension Tour {
138138
}
139139

140140
func shuffle() {
141-
self.shuffle()
141+
self.tour.shuffle()
142142
}
143143
}
144144

0 commit comments

Comments
 (0)