Browse Source

go.crypto/ssh/terminal: support Go 1.0.

For those still stuck on Go 1.0.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/11297043
Adam Langley 12 years ago
parent
commit
c4978816b9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ssh/terminal/terminal.go

+ 2 - 0
ssh/terminal/terminal.go

@@ -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.