Fixed typo in function documentation

This commit is contained in:
Gadzev
2019-12-17 23:21:47 +01:00
committed by Daniel Theophanes
parent 15406c80f4
commit 6fb11709cd
+1 -1
View File
@@ -223,7 +223,7 @@ func (kv KeyValue) float64(name string, defaultValue float64) float64 {
return defaultValue
}
// funcSingle returns the value of the given name, assuming the value is a float64.
// funcSingle returns the value of the given name, assuming the value is a func().
// If the value isn't found or is not of the type, the defaultValue is returned.
func (kv KeyValue) funcSingle(name string, defaultValue func()) func() {
if v, found := kv[name]; found {