go.crypto/ssh: cosmetic only spelling fixes
R=agl, hanwen CC=dave, golang-dev, jpsugar https://golang.org/cl/14430055
This commit is contained in:
committed by
Adam Langley
parent
7bb6c099c0
commit
44256fa2df
+2
-2
@@ -49,7 +49,7 @@ type Channel interface {
|
||||
// ChannelType returns the type of the channel, as supplied by the
|
||||
// client.
|
||||
ChannelType() string
|
||||
// ExtraData returns the arbitary payload for this channel, as supplied
|
||||
// ExtraData returns the arbitrary payload for this channel, as supplied
|
||||
// by the client. This data is specific to the channel type.
|
||||
ExtraData() []byte
|
||||
}
|
||||
@@ -516,7 +516,7 @@ func (w *chanWriter) Write(data []byte) (written int, err error) {
|
||||
return
|
||||
}
|
||||
// never send more data than maxPacket even if
|
||||
// there is sufficent window.
|
||||
// there is sufficient window.
|
||||
n := min(w.maxPacket-headerLength, len(data))
|
||||
r := w.remoteWin.reserve(n)
|
||||
n = r
|
||||
|
||||
Reference in New Issue
Block a user