From de1dfea91ddf9bc95d43d8a7509293417255fcf9 Mon Sep 17 00:00:00 2001 From: rnotorni Date: Mon, 6 Feb 2023 16:54:33 +0900 Subject: [PATCH] Modify: Doc NewCloudEventFromHTTPRequest -> NewEventFromHTTPRequest Signed-off-by: rnotorni --- README.md | 2 +- docs/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 86e366fc8..4638b28f4 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ func main() { ```go func handler(w http.ResponseWriter, r *http.Request) { - event, err := cloudevents.NewCloudEventFromHTTPRequest(r) + event, err := cloudevents.NewEventFromHTTPRequest(r) if err != nil { log.Print("failed to parse CloudEvent from request: %v", err) http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest) diff --git a/docs/index.md b/docs/index.md index 082d00b1b..23f9b275d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -85,7 +85,7 @@ func main() { ```go func handler(w http.ResponseWriter, r *http.Request) { - event, err := cloudevents.NewCloudEventFromHTTPRequest(r) + event, err := cloudevents.NewEventFromHTTPRequest(r) if err != nil { log.Print("failed to parse CloudEvent from request: %v", err) http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)