Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
btubbs committed Oct 20, 2018
1 parent 9cbc314 commit a26e728
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions event_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ func NewEventWriter(w http.ResponseWriter) *EventWriter {
return &EventWriter{w: w}
}

// Write takes a io.Writer and an Event, serializes the Event to bytes, and writes them out to the
// writer. If the writer is also an http.Flusher, then it will also flush the bytes out so the
// event will be sent over the wire immediately. It automatically sets the Content-Type header to
// Write takes an Event, serializes the Event to bytes, and writes them out to the http stream. If
// the stream is also an http.Flusher, then it will also flush the bytes out so the event
// will be sent over the wire immediately. It automatically sets the Content-Type header to
// text/event-stream.
func (evw *EventWriter) Write(e Event) error {

Expand Down

0 comments on commit a26e728

Please sign in to comment.