Skip to content

Fix stale C helper calls in the effects guide - #947

Merged
nicolas-abril merged 1 commit into
bendlang:mainfrom
tachytelicdetonation:contrib/fix-effects-guide
Sep 22, 2026
Merged

nicolas-abril merged 1 commit into
bendlang:mainfrom
tachytelicdetonation:contrib/fix-effects-guide

Conversation

@tachytelicdetonation

Copy link
Copy Markdown
Contributor

The C examples for io_node and io_wait_on no longer match the runtime: the former has an extra argument, and the latter omits the deadline. Correct those calls and explain that a zero deadline waits only for descriptor readiness.

Validation: reproduced clang's argument-count errors against emitted C, then verified that the corrected calls compile. Also extracted and built the guide's complete Clock example and ran it through the default, emitted JavaScript, and native C paths; all three print the documented numeric result. git diff --check passes. No runtime code changes.

@zxv

zxv commented Sep 22, 2026

Copy link
Copy Markdown

rescuing PR by commenting (github bug hid it temporarily)

@nicolas-abril
nicolas-abril merged commit ff7a40c into bendlang:main Sep 22, 2026
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.

3 participants