Skip to content

Commit

Permalink
Merge pull request #10 from matzew/minor_tweak
Browse files Browse the repository at this point in the history
Using the marshaller
  • Loading branch information
matzew committed Dec 11, 2018
2 parents 701b84c + 30fa2e7 commit 3a3d34a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Creating HTTP request from CloudEvent:
```
marshaller := v02.NewDefaultHTTPMarshaller()
var req *http.Request
err := event.ToRequest(req)
err := marshaller.ToRequest(req)
if err != nil {
panic("Unable to marshal event into http Request: " + err.String())
}
Expand Down

0 comments on commit 3a3d34a

Please sign in to comment.