Skip to content

Commit

Permalink
FIx typo
Browse files Browse the repository at this point in the history
s/unmarsheller/unmarshaller/g
  • Loading branch information
CarlosNihelton committed Sep 22, 2023
1 parent d341ed2 commit be26755
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ type Settings struct {
}

// Unmarshal tricks the type system so marshalling YAML will just work when called from the restserver.Settings interface.
func (s Settings) Unmarshal(in []byte, unmarsheller func(in []byte, out interface{}) (err error)) (restserver.Settings, error) {
err := unmarsheller(in, &s)
func (s Settings) Unmarshal(in []byte, unmarshaller func(in []byte, out interface{}) (err error)) (restserver.Settings, error) {
err := unmarshaller(in, &s)
return s, err
}

Expand Down
2 changes: 1 addition & 1 deletion mocks/restserver/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Server interface {

// Settings is the minimal interface a settings backend must provide to the Application.
type Settings interface {
Unmarshal(in []byte, unmarsheller func(in []byte, out interface{}) (err error)) (Settings, error)
Unmarshal(in []byte, unmarshaller func(in []byte, out interface{}) (err error)) (Settings, error)
}

// App encapsulates creating and managing the CLI and lifecycle.
Expand Down
4 changes: 2 additions & 2 deletions mocks/storeserver/storemockserver/storemockserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ type Settings struct {
}

// Unmarshal tricks the type system so marshalling YAML will just work when called from the restserver.Settings interface.
func (s Settings) Unmarshal(in []byte, unmarsheller func(in []byte, out interface{}) (err error)) (restserver.Settings, error) {
err := unmarsheller(in, &s)
func (s Settings) Unmarshal(in []byte, unmarshaller func(in []byte, out interface{}) (err error)) (restserver.Settings, error) {
err := unmarshaller(in, &s)
return s, err
}

Expand Down

0 comments on commit be26755

Please sign in to comment.