From a5c6567b61204a7a0037359d5a5f07ce583191ce Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Mon, 4 Jan 2016 12:16:50 +0900 Subject: [PATCH] fix typos --- zscan.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zscan.go b/zscan.go index b0f46b18..5c10fbaa 100644 --- a/zscan.go +++ b/zscan.go @@ -67,7 +67,7 @@ const ( ) // ParseError is a parsing error. It contains the parse error and the location in the io.Reader -// where the error occured. +// where the error occurred. type ParseError struct { file string err string @@ -86,7 +86,7 @@ func (e *ParseError) Error() (s string) { type lex struct { token string // text of the token tokenUpper string // uppercase text of the token - length int // lenght of the token + length int // length of the token err bool // when true, token text has lexer error value uint8 // value: zString, _BLANK, etc. line int // line in the file @@ -99,7 +99,7 @@ type lex struct { type Token struct { // The scanned resource record when error is not nil. RR - // When an error occured, this has the error specifics. + // When an error occurred, this has the error specifics. Error *ParseError // A potential comment positioned after the RR and on the same line. Comment string