From 76fa20d0c110f3e6b27fb36a98e73d93dc3eb36c Mon Sep 17 00:00:00 2001 From: Ray Miller Date: Thu, 30 Apr 2020 06:30:24 +0100 Subject: [PATCH] Remove extraneous 0 from subslice --- cmd/condense/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/condense/main.go b/cmd/condense/main.go index c97c636..d3f244f 100644 --- a/cmd/condense/main.go +++ b/cmd/condense/main.go @@ -131,5 +131,5 @@ func condenseMaxPoi(xs []placenames.POI, maxPoi int) []placenames.POI { func deleteElement(xs []placenames.POI, i int) []placenames.POI { 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:]...) }