lang: funcs: Fix up some old comments
Woops, bad copy-paste issues.
This commit is contained in:
@@ -94,7 +94,7 @@ func generate(length uint16) (string, error) {
|
||||
return output, nil
|
||||
}
|
||||
|
||||
// Init runs some startup code for this const.
|
||||
// Init runs some startup code for this function.
|
||||
func (obj *Random1Func) Init(init *interfaces.Init) error {
|
||||
obj.init = init
|
||||
obj.closeChan = make(chan struct{})
|
||||
@@ -148,7 +148,7 @@ func (obj *Random1Func) Stream() error {
|
||||
}
|
||||
}
|
||||
|
||||
// Close runs some shutdown code for this const and turns off the stream.
|
||||
// Close runs some shutdown code for this function and turns off the stream.
|
||||
func (obj *Random1Func) Close() error {
|
||||
close(obj.closeChan)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user