Skip to content

Commit

Permalink
Update simann_example.swift
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TRGoCPftF authored Dec 10, 2019
1 parent 942064d commit b513c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Simulated annealing/simann_example.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ extension Tour {
}

func shuffle() {
self.shuffle()
self.tour.shuffle()
}
}

Expand Down

0 comments on commit b513c03

Please sign in to comment.