Update to gobook@4e7af548bbfd4df6c667221ed120f05a06591fdf

Change-Id: I9382f48b9d9ae3f583c435b02d53eec27ccb2a8c
This commit is contained in:
Alan Donovan
2016-09-09 12:30:44 -04:00
parent 7cc6a2956e
commit 77e9f810f3
3 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ var notifyUser = func(username, msg string) {
err := smtp.SendMail(hostname+":587", auth, sender, err := smtp.SendMail(hostname+":587", auth, sender,
[]string{username}, []byte(msg)) []string{username}, []byte(msg))
if err != nil { if err != nil {
log.Printf("smtp.SendEmail(%s) failed: %s", username, err) log.Printf("smtp.SendMail(%s) failed: %s", username, err)
} }
} }

View File

@@ -18,8 +18,8 @@ func TestEqual(t *testing.T) {
cyclePtr2 = &cyclePtr2 cyclePtr2 = &cyclePtr2
type CycleSlice []CycleSlice type CycleSlice []CycleSlice
var cycleSlice CycleSlice var cycleSlice = make(CycleSlice, 1)
cycleSlice = append(cycleSlice, cycleSlice) cycleSlice[0] = cycleSlice
ch1, ch2 := make(chan int), make(chan int) ch1, ch2 := make(chan int), make(chan int)
var ch1ro <-chan int = ch1 var ch1ro <-chan int = ch1

View File

@@ -146,7 +146,7 @@ func parsePrimary(lex *lexer) Expr {
return literal(f) return literal(f)
case '(': case '(':
lex.next() // consume ')' lex.next() // consume '('
e := parseExpr(lex) e := parseExpr(lex)
if lex.token != ')' { if lex.token != ')' {
msg := fmt.Sprintf("got %s, want ')'", lex.describe()) msg := fmt.Sprintf("got %s, want ')'", lex.describe())