Skip to content

Commit

Permalink
all: fix some typos
Browse files Browse the repository at this point in the history
Change-Id: I7e2c867efcc960553da77e395b0069ab6776cd9f
GitHub-Last-Rev: eaa122d
GitHub-Pull-Request: #205
Reviewed-on: https://go-review.googlesource.com/c/net/+/572995
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
  • Loading branch information
vitalmotif authored and gopherbot committed Mar 21, 2024
1 parent 3678185 commit ebc8168
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dns/dnsmessage/message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ func FuzzUnpackPack(f *testing.F) {

msgPacked, err := m.Pack()
if err != nil {
t.Fatalf("failed to pack message that was succesfully unpacked: %v", err)
t.Fatalf("failed to pack message that was successfully unpacked: %v", err)
}

var m2 Message
Expand Down
2 changes: 1 addition & 1 deletion quic/rangeset.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (s *rangeset[T]) add(start, end T) {
if end <= r.end {
return
}
// Possibly coalesce subsquent ranges into range i.
// Possibly coalesce subsequent ranges into range i.
r.end = end
j := i + 1
for ; j < len(*s) && r.end >= (*s)[j].start; j++ {
Expand Down
2 changes: 1 addition & 1 deletion quic/retry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ func TestParseInvalidRetryPackets(t *testing.T) {
}} {
t.Run(test.name, func(t *testing.T) {
if _, ok := parseRetryPacket(test.pkt, originalDstConnID); ok {
t.Errorf("parseRetryPacket succeded, want failure")
t.Errorf("parseRetryPacket succeeded, want failure")
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion quic/stream_limits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func TestStreamLimitStopSendingDoesNotUpdateMaxStreams(t *testing.T) {
tc.writeFrames(packetType1RTT, debugFrameStopSending{
id: s.id,
})
tc.wantFrame("recieved STOP_SENDING, send RESET_STREAM",
tc.wantFrame("received STOP_SENDING, send RESET_STREAM",
packetType1RTT, debugFrameResetStream{
id: s.id,
})
Expand Down
4 changes: 2 additions & 2 deletions quic/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ func TestVersionNegotiationServerReceivesUnknownVersion(t *testing.T) {
})
gotPkt := te.read()
if gotPkt == nil {
t.Fatalf("got no response; want Version Negotiaion")
t.Fatalf("got no response; want Version Negotiation")
}
if got := getPacketType(gotPkt); got != packetTypeVersionNegotiation {
t.Fatalf("got packet type %v; want Version Negotiaion", got)
t.Fatalf("got packet type %v; want Version Negotiation", got)
}
gotDst, gotSrc, versions := parseVersionNegotiation(gotPkt)
if got, want := gotDst, srcConnID; !bytes.Equal(got, want) {
Expand Down

0 comments on commit ebc8168

Please sign in to comment.