diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/interpreter/main.go | 2 | ||||
-rw-r--r-- | cmd/repl/main.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/interpreter/main.go b/cmd/interpreter/main.go index 822aec8..97c8c25 100644 --- a/cmd/interpreter/main.go +++ b/cmd/interpreter/main.go @@ -52,7 +52,7 @@ func main() { var args *ell.V tail := &args for i := 2; i < len(os.Args); i++ { - *tail = ell.NewString([]byte(os.Args[i])) + *tail = ell.NewString(os.Args[i]) tail = &(*tail).Next } diff --git a/cmd/repl/main.go b/cmd/repl/main.go index e7f35fb..eb253d0 100644 --- a/cmd/repl/main.go +++ b/cmd/repl/main.go @@ -46,7 +46,7 @@ func complete(L *ell.Ell, line string) (res []string) { line = strings.ToLower(line) for v := L.Globals; v != nil; v = v.Next { - name := string(v.Head.String) + name := v.Head.String if strings.HasPrefix(strings.ToLower(name), line) { res = append(res, name) } |