Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hvenev
· 2y ago · 0 comments
Is 26 characters next? I think the number of bytestrings of length <= 26 that are also valid UTF-8 is only 0.021 * 256^24.
Comments
[–]
returningfory2
2y ago
I think the problem you encounter with this is that you can no longer reference the small string as a &str.