Closed camdenfullmer closed 1 year ago
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
cc @abertelrud @neonichu - is there anything tracking a better error message from SwiftPM in such cases?
@swift-server-bot test this please
This change adds a note about naming the file
main.swift
and using the@main
attribute.Motivation:
When transitioning to the 1.x API users may have had their files named
main.swift
and will encounter the error'main' attribute cannot be used in a module that contains top-level code
. This change adds a note to help remedy this issue and make it easy to locate when searching the repository.Modifications:
readme.md
Result: