Comment

Comment by irq-1

Note on example of UTF-8 strings. It's counting " has " in the length. You can change it to:

    let l = text.len();
    text.push_str(" has ");
    text.push_usize(l);
parent irq-1 6 days ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton