Skip to content

Conversation

@tarcieri
Copy link
Member

Cleans up the internal helper functions in the word module, adding a choice_from_* prefix to functions that return a Choice, and getting rid of *word* in the function name since it's implicit from the word::* prefix which is used ubiquitously when calling these functions.

Also changes the argument order of select and select_wide (as newly renamed) so the Choice is the last argument, which is more consistent with the rest of the codebase.

Cleans up the internal helper functions in the `word` module, adding
a `choice_from_*` prefix to functions that return a `Choice`, and
getting rid of `*word*` in the function name since it's implicit from
the `word::*` prefix which is used ubiquitously when calling these
functions.

Also changes the argument order of `select` and `select_wide` (as newly
renamed) so the `Choice` is the last argument, which is more consistent
with the rest of the codebase.
@tarcieri tarcieri force-pushed the word/cleanup-helper-functions branch from 06dc7ff to c361333 Compare December 27, 2025 06:12
@codecov
Copy link

codecov bot commented Dec 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.29%. Comparing base (c5c8152) to head (c361333).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1044   +/-   ##
=======================================
  Coverage   79.28%   79.29%           
=======================================
  Files         164      164           
  Lines       17497    17496    -1     
=======================================
  Hits        13873    13873           
+ Misses       3624     3623    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tarcieri tarcieri merged commit d7dd34d into master Dec 27, 2025
27 checks passed
@tarcieri tarcieri deleted the word/cleanup-helper-functions branch December 27, 2025 06:23
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.

2 participants