Skip to content

Commit 883641f

Browse files
jsorefmiekg
andauthored
Spelling (miekg#1222)
* spelling: artifacts Signed-off-by: Josh Soref <[email protected]> * spelling: encoding Signed-off-by: Josh Soref <[email protected]> * spelling: exponent Signed-off-by: Josh Soref <[email protected]> * spelling: ignoring Signed-off-by: Josh Soref <[email protected]> * spelling: implemented Signed-off-by: Josh Soref <[email protected]> * spelling: implements Signed-off-by: Josh Soref <[email protected]> * spelling: next Signed-off-by: Josh Soref <[email protected]> * spelling: numeric Signed-off-by: Josh Soref <[email protected]> * spelling: previous Signed-off-by: Josh Soref <[email protected]> * spelling: positions Signed-off-by: Josh Soref <[email protected]> * spelling: presentation Signed-off-by: Josh Soref <[email protected]> * spelling: resetting Signed-off-by: Josh Soref <[email protected]> * spelling: stringifying Signed-off-by: Josh Soref <[email protected]> * spelling: subsequent Signed-off-by: Josh Soref <[email protected]> * spelling: validated Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Miek Gieben <[email protected]>
1 parent 2f14d10 commit 883641f

11 files changed

+18
-18
lines changed

Makefile.release

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Makefile for releasing.
22
#
33
# The release is controlled from version.go. The version found there is
4-
# used to tag the git repo, we're not building any artifects so there is nothing
4+
# used to tag the git repo, we're not building any artifacts so there is nothing
55
# to upload to github.
66
#
77
# * Up the version in version.go

client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ func Dial(network, address string) (conn *Conn, err error) {
379379
func ExchangeContext(ctx context.Context, m *Msg, a string) (r *Msg, err error) {
380380
client := Client{Net: "udp"}
381381
r, _, err = client.ExchangeContext(ctx, m, a)
382-
// ignorint rtt to leave the original ExchangeContext API unchanged, but
382+
// ignoring rtt to leave the original ExchangeContext API unchanged, but
383383
// this function will go away
384384
return r, err
385385
}

dnssec.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ func (rr *RRSIG) ValidityPeriod(t time.Time) bool {
500500
return ti <= utc && utc <= te
501501
}
502502

503-
// Return the signatures base64 encodedig sigdata as a byte slice.
503+
// Return the signatures base64 encoding sigdata as a byte slice.
504504
func (rr *RRSIG) sigBuf() []byte {
505505
sigbuf, err := fromBase64([]byte(rr.Signature))
506506
if err != nil {

edns.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ func (e *EDNS0_N3U) String() string {
525525
}
526526
func (e *EDNS0_N3U) copy() EDNS0 { return &EDNS0_N3U{e.Code, e.AlgCode} }
527527

528-
// EDNS0_EXPIRE implementes the EDNS0 option as described in RFC 7314.
528+
// EDNS0_EXPIRE implements the EDNS0 option as described in RFC 7314.
529529
type EDNS0_EXPIRE struct {
530530
Code uint16 // Always EDNS0EXPIRE
531531
Expire uint32

fuzz_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func TestPackDataOpt(t *testing.T) {
7878
// "0\x00\v\x00#\b00000\x00\x00\x00\x00\x00\x1a000" +
7979
// "000\x00\x00\x00\x00\x1a000000\x00\x00\x00\x00\x1a0" +
8080
// "00000\x00\v00\a0000000\x00"
81-
// That byte sequence, when Unpack() and subsequential Pack() created a
81+
// That byte sequence, when Unpack() and subsequent Pack() created a
8282
// panic: runtime error: slice bounds out of range
8383
// which was attributed to the fact that NSEC RR length computation was different (and smaller)
8484
// then when within packDataNsec.
@@ -111,7 +111,7 @@ func TestCrashNSEC(t *testing.T) {
111111
// "0000\x00\x00000000\x00\x00200000" +
112112
// "0\x00\v0000\x00\x00#\x0300\x00\x00\x00\x1a000" +
113113
// "000\x00\v00\x0200\x00\x03000\x00"
114-
// That byte sequence, when Unpack() and subsequential Pack() created a
114+
// That byte sequence, when Unpack() and subsequent Pack() created a
115115
// panic: runtime error: slice bounds out of range
116116
// which was attributed to the fact that NSEC3 RR length computation was
117117
// different (and smaller) then within NSEC3.pack (which relies on

labels_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func TestNextLabel(t *testing.T) {
9494
for s, i := range nexts {
9595
x, ok := NextLabel(s.string, s.int)
9696
if i != x {
97-
t.Errorf("label should be %d, got %d, %t: nexting %d, %s", i, x, ok, s.int, s.string)
97+
t.Errorf("label should be %d, got %d, %t: next %d, %s", i, x, ok, s.int, s.string)
9898
}
9999
}
100100
}
@@ -123,7 +123,7 @@ func TestPrevLabel(t *testing.T) {
123123
for s, i := range prever {
124124
x, ok := PrevLabel(s.string, s.int)
125125
if i != x {
126-
t.Errorf("label should be %d, got %d, %t: preving %d, %s", i, x, ok, s.int, s.string)
126+
t.Errorf("label should be %d, got %d, %t: previous %d, %s", i, x, ok, s.int, s.string)
127127
}
128128
}
129129
}

msg.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ func (dns *Msg) packBufferWithCompressionMap(buf []byte, compression compression
742742
}
743743

744744
// Set extended rcode unconditionally if we have an opt, this will allow
745-
// reseting the extended rcode bits if they need to.
745+
// resetting the extended rcode bits if they need to.
746746
if opt := dns.IsEdns0(); opt != nil {
747747
opt.SetExtendedRcode(uint16(dns.Rcode))
748748
} else if dns.Rcode > 0xF {

parse_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func testTXTRRQuick(t *testing.T) {
266266
return false
267267
}
268268
if len(rdata) == 0 {
269-
// string'ing won't produce any data to parse
269+
// stringifying won't produce any data to parse
270270
return true
271271
}
272272
rrString := rr.String()
@@ -1671,10 +1671,10 @@ func TestParseBadSVCB(t *testing.T) {
16711671
`1 . key065534`, // key can't be padded
16721672
`1 . key65534="f`, // unterminated value
16731673
`1 . key65534="`, // unterminated value
1674-
`1 . key65534=\2`, // invalid numberic escape
1675-
`1 . key65534=\24`, // invalid numberic escape
1676-
`1 . key65534=\256`, // invalid numberic escape
1677-
`1 . key65534=\`, // invalid numberic escape
1674+
`1 . key65534=\2`, // invalid numeric escape
1675+
`1 . key65534=\24`, // invalid numeric escape
1676+
`1 . key65534=\256`, // invalid numeric escape
1677+
`1 . key65534=\`, // invalid numeric escape
16781678
`1 . key65534=""alpn`, // zQuote ending needs whitespace
16791679
`1 . key65534="a"alpn`, // zQuote ending needs whitespace
16801680
`1 . ipv6hint=1.1.1.1`, // not ipv6

privaterr.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import "strings"
66
// RFC 6895. This allows one to experiment with new RR types, without requesting an
77
// official type code. Also see dns.PrivateHandle and dns.PrivateHandleRemove.
88
type PrivateRdata interface {
9-
// String returns the text presentaton of the Rdata of the Private RR.
9+
// String returns the text presentation of the Rdata of the Private RR.
1010
String() string
1111
// Parse parses the Rdata of the private RR.
1212
Parse([]string) error

scan.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ func stringToNodeID(l lex) (uint64, *ParseError) {
13521352
if len(l.token) < 19 {
13531353
return 0, &ParseError{l.token, "bad NID/L64 NodeID/Locator64", l}
13541354
}
1355-
// There must be three colons at fixes postitions, if not its a parse error
1355+
// There must be three colons at fixes positions, if not its a parse error
13561356
if l.token[4] != ':' && l.token[9] != ':' && l.token[14] != ':' {
13571357
return 0, &ParseError{l.token, "bad NID/L64 NodeID/Locator64", l}
13581358
}

server_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func TestServeNotImplemented(t *testing.T) {
239239
c := new(Client)
240240
m := new(Msg)
241241

242-
// Test that Opcode is like the unchanged from request Opcode and that Rcode is set to NotImplemnented
242+
// Test that Opcode is like the unchanged from request Opcode and that Rcode is set to NotImplemented
243243
m.SetQuestion("example.com.", TypeTXT)
244244
m.Opcode = opcode
245245
r, _, err := c.Exchange(m, addrstr)
@@ -1031,7 +1031,7 @@ func TestServerRoundtripTsig(t *testing.T) {
10311031
// *Msg r has an TSIG record and it was validated
10321032
m.SetTsig("test.", HmacSHA256, 300, time.Now().Unix())
10331033
} else {
1034-
// *Msg r has an TSIG records and it was not valided
1034+
// *Msg r has an TSIG records and it was not validated
10351035
t.Errorf("invalid TSIG: %v", status)
10361036
}
10371037
} else {

0 commit comments

Comments
 (0)