Skip to content

Fix typos in Efficiency Guide#10854

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

Fix typos in Efficiency Guide#10854
juhlig wants to merge 1 commit intoerlang:masterfrom
juhlig:fix_efficiency_guide_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 23s ⏱️
 95 tests  91 ✅ 4 💤 0 ❌
111 runs  107 ✅ 4 💤 0 ❌

Results for commit 0746c03.

♻️ 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

@jhogberg jhogberg added the team:VM Assigned to OTP team VM label Mar 16, 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. All your changes look good to me but I saw an opportunity to do one more improvement.

(Please amend the commit and force-push.)

@@ -427,7 +427,7 @@ all_but_zeroes_to_list(<<Byte,T/binary>>, Acc, Remaining) ->

The compiler removes building of sub binaries in the second and third clauses,
and it adds an instruction to the first clause that converts `Buffer` from a
match context to a sub binary (or do nothing if `Buffer` is a binary already).
match context to a sub binary (or does nothing if `Buffer` is a binary already).
Copy link
Contributor

Choose a reason for hiding this comment

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

While you are at it, please also do the following change:

Suggested change
match context to a sub binary (or does nothing if `Buffer` is a binary already).
match context to a sub binary (or does nothing if `Buffer` is already a binary).

(Suggested by my own language intuition to be a more natural wording and confirmed by asking an LLM.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that sounds better 👍

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_efficiency_guide_typos branch from 0418b0e to 0746c03 Compare March 17, 2026 08:42
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants