From 78159eef9c48a5e87e6d91037741492a5923478b Mon Sep 17 00:00:00 2001 From: Michael Gaffney Date: Sat, 17 Apr 2021 12:36:21 -0400 Subject: [PATCH] Fix godoc spelling and white space --- internal/db/common/update.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/db/common/update.go b/internal/db/common/update.go index 03c8c58b2..012c5cbd3 100644 --- a/internal/db/common/update.go +++ b/internal/db/common/update.go @@ -14,7 +14,7 @@ import ( // UpdateFields will create a map[string]interface of the update values to be // sent to the db. The map keys will be the field names for the fields to be -// updated. The caller provided fieldMaskPaths and setToNullPaths must not +// updated. The caller provided fieldMaskPaths and setToNullPaths must not // intersect. fieldMaskPaths and setToNullPaths cannot both be zero len. func UpdateFields(i interface{}, fieldMaskPaths []string, setToNullPaths []string) (map[string]interface{}, error) { const op = "common.UpdateFields" @@ -108,7 +108,7 @@ func findMissingPaths(paths []string, foundPaths map[string]struct{}) []string { } // Intersection is a case-insensitive search for intersecting values. Returns -// []string of the Intersection with values in lowercase, and map[string]string +// []string of the Intersection with values in lowercase, and map[string]string // of the original av and bv, with the key set to uppercase and value set to the // original func Intersection(av, bv []string) ([]string, map[string]string, map[string]string, error) { @@ -141,7 +141,7 @@ func Intersection(av, bv []string) ([]string, map[string]string, map[string]stri // BuildUpdatePaths takes a map of field names to field values, field masks, // fields allowed to be zero value, and returns both a list of field names to -// udpate and a list of field names that should be set to null. +// update and a list of field names that should be set to null. func BuildUpdatePaths(fieldValues map[string]interface{}, fieldMask []string, allowZeroFields []string) (masks []string, nulls []string) { for f, v := range fieldValues { if !contains(fieldMask, f) {