Skip to content

Commit

Permalink
hive: fix documentation for cell.Provide & cell.ProvidePrivate
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
  • Loading branch information
mhofstetter authored and tklauser committed Mar 9, 2023
1 parent d6503fa commit 9bb6e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/hive/cell/provide.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (p *provider) Info(container) Info {
return n
}

// Provide constructs a new named cell with the given name and constructors.
// Provide constructs a new cell with the given constructors.
// Constructor is any function that takes zero or more parameters and returns
// one or more values and optionally an error. For example, the following forms
// are accepted:
Expand Down Expand Up @@ -91,7 +91,7 @@ func Provide(ctors ...any) Cell {
return &provider{ctors: ctors, export: true}
}

// ProvidePrivate is like Private, but the constructed objects are only
// ProvidePrivate is like Provide, but the constructed objects are only
// available within the module it is defined and nested modules.
func ProvidePrivate(ctors ...any) Cell {
return &provider{ctors: ctors, export: false}
Expand Down

0 comments on commit 9bb6e50

Please sign in to comment.