Skip to content

Commit 430af04

Browse files
authored
Update quick-setup.md (#451)
fix typos
1 parent eb9512d commit 430af04

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/AWSLambdaRuntimeCore/Documentation.docc/quick-setup.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ swift package init --type executable
2323
2. Add dependencies on `AWSLambdaRuntime` library
2424

2525
```swift
26-
// swift-tools-version:5.8
26+
// swift-tools-version:6.0
2727
// The swift-tools-version declares the minimum version of Swift required to build this package.
2828

2929
import PackageDescription
@@ -53,9 +53,7 @@ let package = Package(
5353

5454
3. Write your function code.
5555

56-
> Be sure to rename the `main.swift` file to something else.
57-
58-
Create an instance of `LambdaRuntime` and pass as a closure a function with this signature: `(_ : Event, context: LambdaContext) async throws -> Output` (as defined in the `LambdaHandler` protocol). `Event` must be `Decodable`.
56+
Create an instance of `LambdaRuntime` and pass a function as a closure. The function has this signature: `(_: Event, context: LambdaContext) async throws -> Output` (as defined in the `LambdaHandler` protocol). `Event` must be `Decodable`. `Output` must be `Encodable`.
5957

6058
If your Lambda function is invoked by another AWS service, use the `AWSLambdaEvent` library at [https://github.com/swift-server/swift-aws-lambda-events](https://github.com/swift-server/swift-aws-lambda-events) to represent the input event.
6159

0 commit comments

Comments
 (0)