Fix a few typos / clarify. (#169)
This commit is contained in:
parent
a7f9fc2a17
commit
b806a5ecbe
8
event.go
8
event.go
|
@ -105,7 +105,7 @@ func (e *Event) Msg(msg string) {
|
|||
e.msg(msg)
|
||||
}
|
||||
|
||||
// Send just like call Msg("")
|
||||
// Send is equivalent to calling Msg("").
|
||||
//
|
||||
// NOTICE: once this method is called, the *Event should be disposed.
|
||||
func (e *Event) Send() {
|
||||
|
@ -115,10 +115,10 @@ func (e *Event) Send() {
|
|||
e.msg("")
|
||||
}
|
||||
|
||||
// Msgf sends the event with formated msg added as the message field if not empty.
|
||||
// Msgf sends the event with formatted msg added as the message field if not empty.
|
||||
//
|
||||
// NOTICE: once this methid is called, the *Event should be disposed.
|
||||
// Calling Msg twice can have unexpected result.
|
||||
// NOTICE: once this method is called, the *Event should be disposed.
|
||||
// Calling Msgf twice can have unexpected result.
|
||||
func (e *Event) Msgf(format string, v ...interface{}) {
|
||||
if e == nil {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue