fix comment

This commit is contained in:
2025-10-06 23:27:48 +02:00
parent 39f06fddc8
commit da48994744

View File

@@ -162,8 +162,7 @@ func PrepareColumnVars(columns string, data *Tabdata) ([]int, error) {
} }
} }
// deduplicate: put all values into a map (value gets map key) // deduplicate columns, preserve order
// thereby removing duplicates, extract keys into new slice
deduped := []int{} deduped := []int{}
for _, i := range usecolumns { for _, i := range usecolumns {
if !slices.Contains(deduped, i) { if !slices.Contains(deduped, i) {