lang: funcs: Rename things for consistency

Also fix a few copy-pasta issues in the documentation.
This commit is contained in:
James Shubin
2018-02-18 19:47:14 -05:00
parent 2fdf8d5dc3
commit f12e502c61
20 changed files with 24 additions and 24 deletions

View File

@@ -157,7 +157,7 @@ func (obj *HistoryFunc) Info() *interfaces.Info {
}
}
// Init runs some startup code for this fact.
// Init runs some startup code for this function.
func (obj *HistoryFunc) Init(init *interfaces.Init) error {
obj.init = init
obj.closeChan = make(chan struct{})
@@ -227,7 +227,7 @@ func (obj *HistoryFunc) Stream() error {
}
}
// Close runs some shutdown code for this fact and turns off the stream.
// Close runs some shutdown code for this function and turns off the stream.
func (obj *HistoryFunc) Close() error {
close(obj.closeChan)
return nil