Skip to content

Commit

Permalink
go.crypto/ssh/terminal: support Go 1.0.
Browse files Browse the repository at this point in the history
For those still stuck on Go 1.0.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/11297043
  • Loading branch information
agl committed Jul 15, 2013
1 parent c3da320 commit b966199
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ssh/terminal/terminal.go
Expand Up @@ -568,6 +568,8 @@ func (t *Terminal) readLine() (line string, err error) {

t.remainder = t.inBuf[:n+len(t.remainder)]
}

panic("unreachable") // for Go 1.0.
}

// SetPrompt sets the prompt to be used when reading subsequent lines.
Expand Down

0 comments on commit b966199

Please sign in to comment.