Skip to content

Commit

Permalink
Merge pull request #24 from mozamimy/fix/typo-in-splitkv
Browse files Browse the repository at this point in the history
Fix a typo in SplitKv function
  • Loading branch information
progrium authored Oct 20, 2016
2 parents 16901e3 + a1372f4 commit 94effa2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions builtin/builtin.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ func HttpGet(in interface{}) (interface{}, error) {
return sigil.NamedReader{resp.Body, "<"+in_+">"}, nil
}


func JoinKv(sep string, in interface{}) ([]interface{}, error) {
m, ok := in.(map[string]interface{})
if !ok {
Expand All @@ -119,7 +118,7 @@ func SplitKv(sep string, in []interface{}) (interface{}, error) {
for i := range in {
v, ok := in[i].(string)
if !ok {
return nil, fmt.Errorf("joinkv must be given a string map of strings")
return nil, fmt.Errorf("splitkv must be given a string map of strings")
}
parts := strings.SplitN(v, sep, 2)
if len(parts) == 2 {
Expand Down

0 comments on commit 94effa2

Please sign in to comment.