Fix trailing whitespace

This commit is contained in:
Miek Gieben 2014-04-24 09:55:55 +00:00
parent 2dc3e40828
commit 40333dd179
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ type Token struct {
// 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
// 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) {
if s[len(s)-1] != '\n' { // We need a closing newline
return ReadRR(strings.NewReader(s+"\n"), "")