From a081bc1e8f2a510c18bc4f387168226906cb9a53 Mon Sep 17 00:00:00 2001 From: Camden Fullmer Date: Tue, 17 Jan 2023 17:31:59 -0500 Subject: [PATCH] Add note about naming the file main.swift. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index a405778f..dc3bedec 100644 --- a/readme.md +++ b/readme.md @@ -37,7 +37,7 @@ First, create a SwiftPM project and pull Swift AWS Lambda Runtime as dependency ) ``` -Next, create a `MyLambda.swift` and implement your Lambda. +Next, create a `MyLambda.swift` and implement your Lambda. Note that the file can not be named `main.swift` or you will encounter the following error: `'main' attribute cannot be used in a module that contains top-level code`. ### Using async function