Skip to content

Commit dd8105f

Browse files
Bogdan DrutuAneurysm9
andauthored
Apply suggestions from code review
Co-authored-by: Anthony Mirabella <[email protected]>
1 parent 9761974 commit dd8105f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

component/componenthelper/component.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ type baseSettings struct {
3232
Shutdown
3333
}
3434

35-
// Option the possible options for New.
35+
// Option represents the possible options for New.
3636
type Option func(*baseSettings)
3737

38-
// WithStart overrides the default Start function for an processor.
38+
// WithStart overrides the default Start function for a processor.
3939
// The default shutdown function does nothing and always returns nil.
4040
func WithStart(start Start) Option {
4141
return func(o *baseSettings) {
4242
o.Start = start
4343
}
4444
}
4545

46-
// WithShutdown overrides the default Shutdown function for an processor.
46+
// WithShutdown overrides the default Shutdown function for a processor.
4747
// The default shutdown function does nothing and always returns nil.
4848
func WithShutdown(shutdown Shutdown) Option {
4949
return func(o *baseSettings) {
@@ -80,7 +80,7 @@ func fromOptions(options []Option) *baseSettings {
8080
return opts
8181
}
8282

83-
// New returns a component.Component that calls the given Start and Shutdown.
83+
// New returns a component.Component configured with the provided Options.
8484
func New(options ...Option) component.Component {
8585
bs := fromOptions(options)
8686
return &baseComponent{

0 commit comments

Comments
 (0)