Skip to content

Commit

Permalink
correct some spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
joeybloggs authored and joeybloggs committed Jun 7, 2016
1 parent 4095cee commit baceb2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion handlers/email/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (email *Email) SetKeepAliveTimout(keepAlive time.Duration) {
email.keepalive = keepAlive
}

// SetEmailTemplate sets Email's html tempalte to be used for email body
// SetEmailTemplate sets Email's html template to be used for email body
func (email *Email) SetEmailTemplate(htmlTemplate string) {
email.templateHTML = htmlTemplate
}
Expand Down
6 changes: 2 additions & 4 deletions handlers/email/email_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func TestBadDial(t *testing.T) {
}

func TestBadEmailTemplate(t *testing.T) {
badTemplate := `{{ .NonExistantField }}` // referencing non-existant field
badTemplate := `{{ .NonExistentField }}` // referencing non-existent field
email := New("localhost", 3041, "", "", "[email protected]", []string{"[email protected]"})
email.SetEmailTemplate(badTemplate)
log.RegisterHandler(email, log.InfoLevel)
Expand All @@ -184,8 +184,6 @@ func TestBadSend(t *testing.T) {
email := New("localhost", 3041, "", "", "[email protected]", []string{"[email protected]"})
log.RegisterHandler(email, log.InfoLevel)

var msg string

server, err := net.Listen("tcp", ":3041")
if err != nil {
t.Errorf("Expected <nil> Got '%s'", err)
Expand All @@ -212,7 +210,7 @@ func TestBadSend(t *testing.T) {
bufout: bufio.NewWriter(conn),
}

msg = handleClient(c, true)
handleClient(c, true)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion handlers/http/hipchat/hipchat.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (hc *HipChat) GetDisplayColor(level log.Level) string {
return hc.colors[level]
}

// SetEmailTemplate sets Email's html tempalte to be used for email body
// SetEmailTemplate sets Email's html template to be used for email body
func (hc *HipChat) SetEmailTemplate(htmlTemplate string) {
hc.templateHTML = htmlTemplate
}
Expand Down

0 comments on commit baceb2f

Please sign in to comment.