File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
component/componenthelper Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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.
3636type 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.
4040func 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.
4848func 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 .
8484func New (options ... Option ) component.Component {
8585 bs := fromOptions (options )
8686 return & baseComponent {
You can’t perform that action at this time.
0 commit comments