浏览代码

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 年之前
父节点
当前提交
c4978816b9
共有 1 个文件被更改,包括 2 次插入0 次删除
  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.