Skip to content

Commit 61e814c

Browse files
committed
Fix spelling of private const
1 parent 7460950 commit 61e814c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

constants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const (
1212
annotationOmitEmpty = "omitempty"
1313
annotationISO8601 = "iso8601"
1414
annotationRFC3339 = "rfc3339"
15-
annotationSeperator = ","
15+
annotationSeparator = ","
1616

1717
iso8601TimeFormat = "2006-01-02T15:04:05Z"
1818

response.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func visitModelNode(model interface{}, included *map[string]*Node,
215215
fieldValue := modelValue.Field(i)
216216
fieldType := modelType.Field(i)
217217

218-
args := strings.Split(tag, annotationSeperator)
218+
args := strings.Split(tag, annotationSeparator)
219219

220220
if len(args) < 1 {
221221
er = ErrBadJSONAPIStructTag

0 commit comments

Comments
 (0)