Skip to content

Commit 2cad5f8

Browse files
lint: fix misspell
1 parent 5d2ed89 commit 2cad5f8

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎.golangci.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ linters:
33
- nakedret
44
- errname
55
- godot
6+
- misspell

‎example_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func Example_customContentMediaType() {
165165
Validate: func(b []byte) error {
166166
return xml.Unmarshal(b, new(any))
167167
},
168-
UnmarshalJSON: nil, // xml is not json-compatiable format
168+
UnmarshalJSON: nil, // xml is not json-compatible format
169169
})
170170
c.AssertContent()
171171
if err := c.AddResource("schema.json", schema); err != nil {

‎root.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (r *root) resolveFragment(frag fragment) (urlPtr, error) {
5353
return r.resolveFragmentIn(frag, r.rootResource())
5454
}
5555

56-
// resovles urlFrag to urlPtr from root.
56+
// resolves urlFrag to urlPtr from root.
5757
// returns nil if it is external.
5858
func (r *root) resolve(uf urlFrag) (*urlPtr, error) {
5959
var res *resource

0 commit comments

Comments
 (0)