Skip to content

📝 docs(lang): document terminators for nested functions - #2706

Merged
harehare merged 1 commit into
mainfrom
docs/nested-fn-terminator
Oct 27, 2026
Merged

harehare merged 1 commit into
mainfrom
docs/nested-fn-terminator

Conversation

@harehare

@harehare harehare commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

A function returning a function needs ;; (or end) because a single ; closes only the inner one, and the outer body then swallows the rest of the program without an error.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor
  • 📝 Documentation
  • ⚡ Performance
  • ✅ Test
  • 📦 Build / dependencies
  • 👷 CI

Checklist

  • I ran cargo fmt and cargo clippy and addressed any warnings
  • I ran just test-all and all tests pass
  • I added or updated tests covering this change
  • I updated relevant documentation (/docs, crate README.md) if needed

Additional Context

A function returning a function needs `;;` (or `end`) because a single `;` closes only the inner one, and the outer body then swallows the rest of the program without an error.
@harehare
harehare merged commit 3ffad26 into main Oct 27, 2026
12 checks passed
@harehare
harehare deleted the docs/nested-fn-terminator branch October 27, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant