Skip to content

Commit f5f1839

Browse files
shogo82148bmoffatt
andauthored
fix minor typos (#324)
* fix minor typos * fix another typo * fix another typo * Update entry.go Co-authored-by: Bryan Moffatt <[email protected]>
1 parent c6b2e41 commit f5f1839

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ linters:
44
- gofmt
55
- errcheck
66
- deadcode
7-
- gosimple
7+
- gosimple
88
- govet
99
- ineffassign
1010
- staticcheck
11-
- structcheck
11+
- structcheck
1212
- typecheck
1313
- unused
1414
- varcheck
1515

1616
run:
1717
skip-files:
18-
# These were code-generated, and cannot be changed without breaking RPC compatability.
18+
# These were code-generated, and cannot be changed without breaking RPC compatibility.
1919
- lambda/messages/*.go
2020

2121
# FIXME

events/codebuild.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ type CodeBuildEventDetail struct {
9393
CompletedPhaseEnd CodeBuildTime `json:"completed-phase-end"`
9494
}
9595

96-
//CodeBuildEventAdditionalInformation represents additional informations to the code build event
96+
//CodeBuildEventAdditionalInformation represents additional information to the code build event
9797
type CodeBuildEventAdditionalInformation struct {
9898
Artifact CodeBuildArtifact `json:"artifact"`
9999

lambda/entry.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ type startFunction struct {
6161
}
6262

6363
var (
64-
// This allow users to save a little bit of coldstart time in the download, by the dependecies brought in for RPC support.
64+
// This allows users to save a little bit of coldstart time in the download, by the dependencies brought in for RPC support.
6565
// The tradeoff is dropping compatibility with the go1.x runtime, functions must be "Custom Runtime" instead.
66-
// To drop the rpc dependecies, compile with `-tags lambda.norpc`
66+
// To drop the rpc dependencies, compile with `-tags lambda.norpc`
6767
rpcStartFunction = &startFunction{
6868
env: "_LAMBDA_SERVER_PORT",
6969
f: func(c context.Context, p string, h Handler) error {

lambda/invoke_loop.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ func startRuntimeAPILoop(ctx context.Context, api string, handler Handler) error
3939
func handleInvoke(invoke *invoke, function *Function) error {
4040
functionRequest, err := convertInvokeRequest(invoke)
4141
if err != nil {
42-
return fmt.Errorf("unexpected error occured when parsing the invoke: %v", err)
42+
return fmt.Errorf("unexpected error occurred when parsing the invoke: %v", err)
4343
}
4444

4545
functionResponse := &messages.InvokeResponse{}
4646
if err := function.Invoke(functionRequest, functionResponse); err != nil {
47-
return fmt.Errorf("unexpected error occured when invoking the handler: %v", err)
47+
return fmt.Errorf("unexpected error occurred when invoking the handler: %v", err)
4848
}
4949

5050
if functionResponse.Error != nil {
5151
payload := safeMarshal(functionResponse.Error)
5252
if err := invoke.failure(payload, contentTypeJSON); err != nil {
53-
return fmt.Errorf("unexpected error occured when sending the function error to the API: %v", err)
53+
return fmt.Errorf("unexpected error occurred when sending the function error to the API: %v", err)
5454
}
5555
if functionResponse.Error.ShouldExit {
5656
return fmt.Errorf("calling the handler function resulted in a panic, the process should exit")
@@ -59,7 +59,7 @@ func handleInvoke(invoke *invoke, function *Function) error {
5959
}
6060

6161
if err := invoke.success(functionResponse.Payload, contentTypeJSON); err != nil {
62-
return fmt.Errorf("unexpected error occured when sending the function functionResponse to the API: %v", err)
62+
return fmt.Errorf("unexpected error occurred when sending the function functionResponse to the API: %v", err)
6363
}
6464

6565
return nil

lambdacontext/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// Helpers for accessing context information from an Invoke request. Context information
44
// is stored in a https://golang.org/pkg/context/#Context. The functions FromContext and NewContext
5-
// are used to retrieving and inserting an isntance of LambdaContext.
5+
// are used to retrieving and inserting an instance of LambdaContext.
66

77
package lambdacontext
88

0 commit comments

Comments
 (0)