Skip to content

Commit

Permalink
Merge c14a92a into 2b38938
Browse files Browse the repository at this point in the history
  • Loading branch information
teivah committed Jun 8, 2018
2 parents 2b38938 + c14a92a commit dcd1829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coordinate_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func SortCoordinatePairs(cp []CoordinatePair) {
func SlicesToCoordinatePairs(x, y []float64) []CoordinatePair {
cp := make([]CoordinatePair, len(x))
for i := 0; i < len(x); i++ {
cp = append(cp, CoordinatePair{X: x[i], Y: y[i]})
cp[i] = CoordinatePair{X: x[i], Y: y[i]}
}
return cp
}

0 comments on commit dcd1829

Please sign in to comment.