fix(helm): fix doc string for ErrNotList

This just moves a var declaration to the top of a file and then properly
documents it.
pull/1600/head
Matt Butcher 8 years ago
parent 7a15ad381e
commit 2c326895b7
No known key found for this signature in database
GPG Key ID: DCD5F5E5EF32C345

@ -26,6 +26,9 @@ import (
"github.com/ghodss/yaml"
)
// ErrNotList indicates that a non-list was treated as a list.
var ErrNotList = errors.New("not a list")
// ToYAML takes a string of arguments and converts to a YAML document.
func ToYAML(s string) (string, error) {
m, err := Parse(s)
@ -156,8 +159,6 @@ func (t *parser) val() ([]rune, error) {
return v, err
}
var ErrNotList = errors.New("not a list")
func (t *parser) valList() ([]interface{}, error) {
r, _, e := t.sc.ReadRune()

Loading…
Cancel
Save