Skip to content

Commit

Permalink
nit: fix some comments in config (#5150)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu authored Apr 5, 2022
1 parent 9ca2c42 commit f6b1cd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ type validatable interface {
Validate() error
}

// Unmarshallable defines an optional interface for custom configuration unmarshaling.
// A configuration struct can implement this interface to override the default unmarshaling.
// Unmarshallable defines an optional interface for custom configuration unmarshalling.
// A configuration struct can implement this interface to override the default unmarshalling.
type Unmarshallable interface {
// Unmarshal is a function that unmarshals a config.Map into the unmarshable struct in a custom way.
// Unmarshal is a function that unmarshals a config.Map into the struct in a custom way.
// The config.Map for this specific component may be nil or empty if no config available.
Unmarshal(component *Map) error
}

0 comments on commit f6b1cd9

Please sign in to comment.