Skip to content

Fix typos in Programming Examples#10858

Open
juhlig wants to merge 1 commit intoerlang:masterfrom
juhlig:fix_programming_examples_typos
Open

Fix typos in Programming Examples#10858
juhlig wants to merge 1 commit intoerlang:masterfrom
juhlig:fix_programming_examples_typos

Conversation

@juhlig
Copy link
Contributor

@juhlig juhlig commented Mar 16, 2026

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 16, 2026

CT Test Results

  1 files   11 suites   3m 49s ⏱️
 95 tests  91 ✅ 4 💤 0 ❌
111 runs  107 ✅ 4 💤 0 ❌

Results for commit bef66e1.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@bjorng bjorng self-assigned this Mar 17, 2026
@bjorng bjorng added the team:VM Assigned to OTP team VM label Mar 17, 2026
Copy link
Contributor

@bjorng bjorng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your pull request. This looks good except for one change. Please change it back or give me a good motivation why your version is better than the original.

@@ -305,8 +305,8 @@ linter. It extracts arities from all defined functions. All elements in the
list `DefinedFuns` are two-tuples, containing name and arity for functions.
If any of them differs from this pattern, it means that something has added
an invalid item into the list of defined functions. It is better for the linter
to crash in the comprehension than skipping the invalid item and continue
running. Using a strict generator here is correct, because the linter should
to crash in the comprehension than skipping the invalid item and continuing to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you motivate this change? My own Sprachgefühl likes the original wording better. Also, two LLMs I asked changed your version back to the original, and one LLM explained that since "crash" and "skip" are infinitives, "continue" should also be in the infinitive form.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well... the original wording was not entirely correct, but my change made it worse XP The correct wording (also checked by an LLM) would be "It is better for the linter to crash in the comprehension than to skip the invalid item and continue running."

Will change 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Co-authored-by: Maria Scott <maria-12648430@hnc-agency.org>
@juhlig juhlig force-pushed the fix_programming_examples_typos branch from fe832b8 to bef66e1 Compare March 17, 2026 09:09
@bjorng bjorng added the testing currently being tested, tag is used by OTP internal CI label Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants