Skip to content

Conversation

cactusdualcore
Copy link

The comment describing the functionality of EncodeUtf16::size_hint has a double claim for highest bytes-to-code-units-ratio. This commit replaces one of the repeated occurrences to be about the lowest ratio.

The comment describing the functionality of `EncodeUtf16::size_hint` has a double claim for highest bytes-to-code-units-ratio. This commit replaces one of the repeated occurrences to be about the _lowest_ ratio.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Sep 25, 2025
@rustbot
Copy link
Collaborator

rustbot commented Sep 25, 2025

r? @ibraheemdev

rustbot has assigned @ibraheemdev.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@cactusdualcore
Copy link
Author

I just realized the replacement would need to be the other way around, as bytes / code units is the biggest with 3 bytes/1 code unit for the lower bound. Thus, the lowest ratio is 1:1 for the upper bound.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

3 participants