[Chapel Merge] Adjust spec wording for main module details

Branch: refs/heads/main
Revision: 2a5b452
Author: mppf
Link: Adjust spec wording for main module details by mppf · Pull Request #19259 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19259 from mppf/docs-issue-19258

Adjust spec wording for main module details

Resolves #19258.

To clarify the docs for issue #19258.

  • Describes identifying the "main module" in a new section
  • use "procedure" instead of "function" when referring to a proc
    (including for main) in the Modules chapter
  • improved the module initialization section to talk about what happens
    when a particular module is initialized instead of generally
    describing all module initialization at once
  • improved the module initialization to indicate top-level modules in
    files mentioned on the command line are initialized (from PR #18724)

Reviewed by @bradcray - thanks!

Modified Files:
M doc/rst/language/spec/modules.rst

Compare: https://github.com/chapel-lang/chapel/compare/73d6c4d60874...2a5b4528c6d9