commit 673c3a25bd5050c9fe9f45afd994ac5e2d9f8c41
parent 1cc6031d4c60c13599eae881a296bae1a182f88d
Author: gearsix <gearsix@tuta.io>
Date: Fri, 9 Apr 2021 15:00:54 +0100
updated doc for GenerateSuperData
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/data.go b/data.go
@@ -219,8 +219,7 @@ func sortFileDataModified(direction string, data map[string]Data) ([]Data, error
return sorted, nil
}
-// GenerateSuperData merges all `global` Data and then adds `d` to the merged
-// structure under the key provided in `datakey`.
+// GenerateSuperData simply addeds a key named `datakey` to `global` and assigns `data` to it
func GenerateSuperData(datakey string, global Data, data []Data) (super Data, err error) {
super = global