Skip to content

Commit 45a5f77

Browse files
igorzhilianinbradfitz
authored andcommitted
all: fix typos
Change-Id: I62cbcfcd0be5f6a74d93b85b24ff7607533bb239 GitHub-Last-Rev: 9967869 GitHub-Pull-Request: golang#64 Reviewed-on: https://go-review.googlesource.com/c/145240 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent e84da03 commit 45a5f77

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

blake2b/blake2x.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type XOF interface {
2929
}
3030

3131
// OutputLengthUnknown can be used as the size argument to NewXOF to indicate
32-
// the the length of the output is not known in advance.
32+
// the length of the output is not known in advance.
3333
const OutputLengthUnknown = 0
3434

3535
// magicUnknownOutputLength is a magic value for the output size that indicates

blake2s/blake2x.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type XOF interface {
2929
}
3030

3131
// OutputLengthUnknown can be used as the size argument to NewXOF to indicate
32-
// the the length of the output is not known in advance.
32+
// the length of the output is not known in advance.
3333
const OutputLengthUnknown = 0
3434

3535
// magicUnknownOutputLength is a magic value for the output size that indicates

cryptobyte/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func NewFixedBuilder(buffer []byte) *Builder {
5151
}
5252

5353
// Bytes returns the bytes written by the builder or an error if one has
54-
// occurred during during building.
54+
// occurred during building.
5555
func (b *Builder) Bytes() ([]byte, error) {
5656
if b.err != nil {
5757
return nil, b.err

ocsp/ocsp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (r ResponseStatus) String() string {
6363
}
6464

6565
// ResponseError is an error that may be returned by ParseResponse to indicate
66-
// that the response itself is an error, not just that its indicating that a
66+
// that the response itself is an error, not just that it's indicating that a
6767
// certificate is revoked, unknown, etc.
6868
type ResponseError struct {
6969
Status ResponseStatus

openpgp/packet/userattribute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (uat *UserAttribute) Serialize(w io.Writer) (err error) {
8080

8181
// ImageData returns zero or more byte slices, each containing
8282
// JPEG File Interchange Format (JFIF), for each photo in the
83-
// the user attribute packet.
83+
// user attribute packet.
8484
func (uat *UserAttribute) ImageData() (imageData [][]byte) {
8585
for _, sp := range uat.Contents {
8686
if sp.SubType == UserAttrImageSubpacket && len(sp.Contents) > 16 {

ripemd160/ripemd160.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Package ripemd160 implements the RIPEMD-160 hash algorithm.
66
package ripemd160 // import "golang.org/x/crypto/ripemd160"
77

8-
// RIPEMD-160 is designed by by Hans Dobbertin, Antoon Bosselaers, and Bart
8+
// RIPEMD-160 is designed by Hans Dobbertin, Antoon Bosselaers, and Bart
99
// Preneel with specifications available at:
1010
// http://homes.esat.kuleuven.be/~cosicart/pdf/AB-9601/AB-9601.pdf.
1111

scrypt/scrypt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func blockXOR(dst, src []uint32, n int) {
2929
}
3030

3131
// salsaXOR applies Salsa20/8 to the XOR of 16 numbers from tmp and in,
32-
// and puts the result into both both tmp and out.
32+
// and puts the result into both tmp and out.
3333
func salsaXOR(tmp *[16]uint32, in, out []uint32) {
3434
w0 := tmp[0] ^ in[0]
3535
w1 := tmp[1] ^ in[1]

sha3/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
// is then "full" and the permutation is applied to "empty" it. This process is
4444
// repeated until all the input has been "absorbed". The input is then padded.
4545
// The digest is "squeezed" from the sponge in the same way, except that output
46-
// output is copied out instead of input being XORed in.
46+
// is copied out instead of input being XORed in.
4747
//
4848
// A sponge is parameterized by its generic security strength, which is equal
4949
// to half its capacity; capacity + rate is equal to the permutation's width.

ssh/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func Dial(network, addr string, config *ClientConfig) (*Client, error) {
185185
// keys. A HostKeyCallback must return nil if the host key is OK, or
186186
// an error to reject it. It receives the hostname as passed to Dial
187187
// or NewClientConn. The remote address is the RemoteAddr of the
188-
// net.Conn underlying the the SSH connection.
188+
// net.Conn underlying the SSH connection.
189189
type HostKeyCallback func(hostname string, remote net.Addr, key PublicKey) error
190190

191191
// BannerCallback is the function type used for treat the banner sent by

ssh/mux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func muxPair() (*mux, *mux) {
2020
return s, c
2121
}
2222

23-
// Returns both ends of a channel, and the mux for the the 2nd
23+
// Returns both ends of a channel, and the mux for the 2nd
2424
// channel.
2525
func channelPair(t *testing.T) (*channel, *channel, *mux) {
2626
c, s := muxPair()

0 commit comments

Comments
 (0)