From 40333dd17975a73ff68a51dbd1dd066c7f2f3597 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Thu, 24 Apr 2014 09:55:55 +0000 Subject: [PATCH] Fix trailing whitespace --- zscan.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zscan.go b/zscan.go index 55d30f46..eb3290e4 100644 --- a/zscan.go +++ b/zscan.go @@ -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"), "") @@ -116,7 +116,7 @@ func NewRR(s string) (RR, error) { return ReadRR(strings.NewReader(s), "") } -// ReadRR reads the RR contained in q. +// ReadRR reads the RR contained in q. // See NewRR for more documentation. func ReadRR(q io.Reader, filename string) (RR, error) { r := <-parseZoneHelper(q, ".", filename, 1)