Update to gobook@4e7af548bbfd4df6c667221ed120f05a06591fdf
Change-Id: I9382f48b9d9ae3f583c435b02d53eec27ccb2a8c
This commit is contained in:
@@ -31,7 +31,7 @@ var notifyUser = func(username, msg string) {
|
||||
err := smtp.SendMail(hostname+":587", auth, sender,
|
||||
[]string{username}, []byte(msg))
|
||||
if err != nil {
|
||||
log.Printf("smtp.SendEmail(%s) failed: %s", username, err)
|
||||
log.Printf("smtp.SendMail(%s) failed: %s", username, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ func TestEqual(t *testing.T) {
|
||||
cyclePtr2 = &cyclePtr2
|
||||
|
||||
type CycleSlice []CycleSlice
|
||||
var cycleSlice CycleSlice
|
||||
cycleSlice = append(cycleSlice, cycleSlice)
|
||||
var cycleSlice = make(CycleSlice, 1)
|
||||
cycleSlice[0] = cycleSlice
|
||||
|
||||
ch1, ch2 := make(chan int), make(chan int)
|
||||
var ch1ro <-chan int = ch1
|
||||
|
||||
@@ -146,7 +146,7 @@ func parsePrimary(lex *lexer) Expr {
|
||||
return literal(f)
|
||||
|
||||
case '(':
|
||||
lex.next() // consume ')'
|
||||
lex.next() // consume '('
|
||||
e := parseExpr(lex)
|
||||
if lex.token != ')' {
|
||||
msg := fmt.Sprintf("got %s, want ')'", lex.describe())
|
||||
|
||||
Reference in New Issue
Block a user