forked from mirror/readline
Correct minor issues with auto complete example
This commit is contained in:
parent
77fbb66748
commit
46f410607f
|
@ -124,7 +124,6 @@ for {
|
|||
|
||||
```go
|
||||
import (
|
||||
"log"
|
||||
"gopkg.in/readline.v1"
|
||||
)
|
||||
|
||||
|
@ -136,7 +135,7 @@ var completer = readline.NewPrefixCompleter(
|
|||
readline.PcItem("help"),
|
||||
)
|
||||
|
||||
rl, err := readline.New(&readline.Config{
|
||||
rl, err := readline.NewEx(&readline.Config{
|
||||
Prompt: "> ",
|
||||
AutoComplete: completer,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue