News for hackers. Stuff that matters.
Re:Learning Rust via Advent of Code by steveklabnik on Monday February 04, 2019 @05:30PM (#19081298)
&str is not the same as &[char]. &str has the same memory representation as &[u8]. char is four bytes, not one.
Re:Learning Rust via Advent of Code by gridspy on Tuesday February 05, 2019 @02:52AM (#19083646)
Thanks Steve.
Re:Learning Rust via Advent of Code by steveklabnik on Tuesday February 05, 2019 @03:14AM (#19083707)
No problem! It's an easy mistake to make.