Fix trailing whitespace
This commit is contained in:
parent
2dc3e40828
commit
40333dd179
2
zscan.go
2
zscan.go
|
@ -108,7 +108,7 @@ type Token struct {
|
||||||
// NewRR reads the RR contained in the string s. Only the first RR is returned.
|
// NewRR reads the RR contained in the string s. Only the first RR is returned.
|
||||||
// The class defaults to IN and TTL defaults to 3600. The full zone file
|
// The class defaults to IN and TTL defaults to 3600. The full zone file
|
||||||
// syntax like $TTL, $ORIGIN, etc. is supported.
|
// syntax like $TTL, $ORIGIN, etc. is supported.
|
||||||
// All fields of the returned RR are set, except RR.Header().Rdlength wich is 0.
|
// All fields of the returned RR are set, except RR.Header().Rdlength which is set to 0.
|
||||||
func NewRR(s string) (RR, error) {
|
func NewRR(s string) (RR, error) {
|
||||||
if s[len(s)-1] != '\n' { // We need a closing newline
|
if s[len(s)-1] != '\n' { // We need a closing newline
|
||||||
return ReadRR(strings.NewReader(s+"\n"), "")
|
return ReadRR(strings.NewReader(s+"\n"), "")
|
||||||
|
|
Loading…
Reference in New Issue