3
0

Fixed typos across the codebase (can not, cannot)

This commit is contained in:
Denis Arh
2021-03-17 17:25:05 +01:00
parent a848c7d0b8
commit 79ed77a379
94 changed files with 117 additions and 118 deletions
+2 -2
View File
@@ -692,7 +692,7 @@ func (s Store) collect{{ export $.Types.Singular }}CursorValues({{ template "ext
// check{{ export $.Types.Singular }}Constraints performs lookups (on valid) resource to check if any of the values on unique fields
// already exists in the store
//
// Using built-in constraint checking would be more performant but unfortunately we can not rely
// Using built-in constraint checking would be more performant but unfortunately we cannot rely
// on the full support (MySQL does not support conditional indexes)
func (s *Store) check{{ export $.Types.Singular }}Constraints(ctx context.Context{{ template "extraArgsDef" $ }}, res *{{ $.Types.GoType }}) error {
// Consider resource valid when all fields in unique constraint check lookups
@@ -709,7 +709,7 @@ func (s *Store) check{{ export $.Types.Singular }}Constraints(ctx context.Contex
{{ else if eq .Type "string" }}
valid = valid && len(res.{{ .Field }}) > 0
{{ else }}
// can not check field {{ .Field }} with unsupported type: {{ .Type }}
// cannot check field {{ .Field }} with unsupported type: {{ .Type }}
{{ end }}
{{- end }}
{{- end }}