Fixed typo in function documentation
This commit is contained in:
committed by
Daniel Theophanes
parent
15406c80f4
commit
6fb11709cd
+1
-1
@@ -223,7 +223,7 @@ func (kv KeyValue) float64(name string, defaultValue float64) float64 {
|
|||||||
return defaultValue
|
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.
|
// 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() {
|
func (kv KeyValue) funcSingle(name string, defaultValue func()) func() {
|
||||||
if v, found := kv[name]; found {
|
if v, found := kv[name]; found {
|
||||||
|
|||||||
Reference in New Issue
Block a user