diff options
author | Přemysl Janouch <p@janouch.name> | 2018-10-09 18:21:56 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-10-09 18:25:41 +0200 |
commit | 1e03aeacdd96223d19260ee5a9d8794d2a14fe38 (patch) | |
tree | 18d4f0bed6f164285e81f35d986af65f26459c9f /cmd/repl | |
parent | f7bb33cc3d87fe6636b52bf99c810eb321b1dc42 (diff) | |
download | ell-1e03aeacdd96223d19260ee5a9d8794d2a14fe38.tar.gz ell-1e03aeacdd96223d19260ee5a9d8794d2a14fe38.tar.xz ell-1e03aeacdd96223d19260ee5a9d8794d2a14fe38.zip |
Go: use string for strings instead of []byte
A few conversions more, a few conversions less.
Diffstat (limited to 'cmd/repl')
-rw-r--r-- | cmd/repl/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |