Post #676321
2026-03-15 12:59 UTC
guh
https://doc.rust-lang.org/src/core/str/mod.rs.html#121
/// Returns the length of `self`.
///
/// This length is in bytes, not [`char`]s or graphemes. In other words,
/// it might not be what a human considers the length of the string.
why is programming in 2026 like this?
(turns out i actually need floor_char_boundary because truncating strings is hard)
Replies (0)
No replies.