diff --git a/datarecord/datarecord.go b/datarecord/datarecord.go index f5a74ba..876a02a 100644 --- a/datarecord/datarecord.go +++ b/datarecord/datarecord.go @@ -156,8 +156,8 @@ func (obj *dataReader) GetDataRows() []string { points, ok := data[columnName] if ok { - for _, point := range points { - writer.WriteString(fmt.Sprintf(", %g", point)) + for i := range points { + writer.WriteString(fmt.Sprintf(", %g", points[i])) } } else { writer.WriteString(blankPoints)