From 30fa2e7929644471042b8cea1707efb755872157 Mon Sep 17 00:00:00 2001 From: Matthias Wessendorf Date: Mon, 10 Dec 2018 18:01:40 +0100 Subject: [PATCH] using the marshaller Signed-off-by: Matthias Wessendorf --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 938a936dd..849a5821c 100644 --- a/README.md +++ b/README.md @@ -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()) }