Install example right away

This commit is contained in:
Miek Gieben 2012-03-04 10:41:16 +01:00
parent 536ac17f11
commit 49f41fb17b
2 changed files with 3 additions and 3 deletions

View File

@ -8,4 +8,4 @@ EXAMPLES=mx \
q \ q \
ex: ex:
for i in $(EXAMPLES); do echo $$i; (cd $$i && go build); done for i in $(EXAMPLES); do echo $$i; (cd $$i && go install); done

View File

@ -343,8 +343,8 @@ func parseZone(r io.Reader, origin, f string, t chan Token, include int) {
case _RRTYPE: case _RRTYPE:
h.Rrtype = l.torc h.Rrtype = l.torc
st = _EXPECT_RDATA st = _EXPECT_RDATA
case _NEWLINE: default:
t <- Token{Error: &ParseError{f, "premature newline, no RR type seen", l}} t <- Token{Error: &ParseError{f, "expecting RR type or class, not this...", l}}
return return
} }
case _EXPECT_ANY_NOCLASS: case _EXPECT_ANY_NOCLASS: