Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chzyer committed Apr 21, 2016
1 parent fd07ffe commit 1e0917c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/readline-multiline/readline-multiline.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func main() {
continue
}
cmds = append(cmds, line)
if !strings.Contains(line, ";") {
if !strings.HasSuffix(line, ";") {
rl.SetPrompt(">>> ")
continue
}
Expand Down
2 changes: 1 addition & 1 deletion readline.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (i *Instance) SetMaskRune(r rune) {
i.Operation.SetMaskRune(r)
}

// change hisotry persistence in runtime
// change history persistence in runtime
func (i *Instance) SetHistoryPath(p string) {
i.Operation.SetHistoryPath(p)
}
Expand Down

0 comments on commit 1e0917c

Please sign in to comment.