Skip to content

Commit 58664bd

Browse files
Add note about naming the file main.swift. (#283)
1 parent de730b2 commit 58664bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ First, create a SwiftPM project and pull Swift AWS Lambda Runtime as dependency
3737
)
3838
```
3939

40-
Next, create a `MyLambda.swift` and implement your Lambda.
40+
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`.
4141

4242
### Using async function
4343

0 commit comments

Comments
 (0)