Skip to content

Commit 71624ac

Browse files
Fix spelling typos (#616)
1 parent 33e4dc3 commit 71624ac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lambda/invoke_loop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func reportFailure(invoke *invoke, invokeErr *messages.InvokeResponse_Error) err
107107

108108
causeForXRay, err := json.Marshal(makeXRayError(invokeErr))
109109
if err != nil {
110-
return fmt.Errorf("unexpected error occured when serializing the function error cause for X-Ray: %v", err)
110+
return fmt.Errorf("unexpected error occurred when serializing the function error cause for X-Ray: %v", err)
111111
}
112112

113113
if err := invoke.failure(bytes.NewReader(errorPayload), contentTypeJSON, causeForXRay); err != nil {

lambdaurl/http_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func Wrap(handler http.Handler) func(context.Context, *events.LambdaFunctionURLR
133133
defer close(ready)
134134
defer w.Close() // TODO: recover and CloseWithError the any panic value once the runtime API client supports plumbing fatal errors through the reader
135135
//nolint:errcheck
136-
defer responseWriter.Write(nil) // force default status, headers, content type detection, if none occured during the execution of the handler
136+
defer responseWriter.Write(nil) // force default status, headers, content type detection, if none occurred during the execution of the handler
137137
handler.ServeHTTP(responseWriter, httpRequest)
138138
}()
139139
header := <-ready

0 commit comments

Comments
 (0)