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