Make compatible with go 1.1 - fixes #1

This commit is contained in:
Nick Craig-Wood 2014-06-26 15:18:48 +01:00
parent 4bfca75012
commit 1d67b014cb

View File

@ -147,7 +147,7 @@ func Command(commands []string) byte {
if len(result) != 1 {
continue
}
i := strings.IndexByte(optString, result[0])
i := strings.Index(optString, string(result[0]))
if i >= 0 {
return result[0]
}