Remove extraneous 0 from subslice
This commit is contained in:
parent
6135951d08
commit
76fa20d0c1
1 changed files with 1 additions and 1 deletions
|
@ -131,5 +131,5 @@ func condenseMaxPoi(xs []placenames.POI, maxPoi int) []placenames.POI {
|
||||||
|
|
||||||
func deleteElement(xs []placenames.POI, i int) []placenames.POI {
|
func deleteElement(xs []placenames.POI, i int) []placenames.POI {
|
||||||
log.Printf("Deleting %s (%0.1f)", xs[i].Name, xs[i].Distance)
|
log.Printf("Deleting %s (%0.1f)", xs[i].Name, xs[i].Distance)
|
||||||
return append(xs[0:i], xs[i+1:]...)
|
return append(xs[:i], xs[i+1:]...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue