Skip to content

fix: correct type variable in regions example code#291

Merged
magnus-madsen merged 1 commit intomasterfrom
fix/regions-type-variable-256
Feb 24, 2026
Merged

fix: correct type variable in regions example code#291
magnus-madsen merged 1 commit intomasterfrom
fix/regions-type-variable-256

Conversation

@magnus-madsen
Copy link
Member

Summary

  • Fixes incorrect use of value rc instead of type variable r in the return type (MutDeque[a, rc]MutDeque[a, r]) and effect annotation (\ rc\ r) of the toMutDeque example in the Regions section
  • Updates the example to use modern Flix foreach syntax instead of the older forEach higher-order function style

Closes #256

Test plan

  • Verify the rendered page at regions.html shows the corrected code example

🤖 Generated with Claude Code

Use type variable `r` instead of value `rc` in the return type and
effect annotation of the `toMutDeque` example. Also update to modern
Flix foreach syntax.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@magnus-madsen magnus-madsen merged commit 0b155cd into master Feb 24, 2026
1 check passed
@magnus-madsen magnus-madsen deleted the fix/regions-type-variable-256 branch February 24, 2026 09:39
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.

Incorrect example code in Regions section

1 participant