Hacker News new | ask | show | jobs
by steveklabnik 2687 days ago
&str is not the same as &[char]. &str has the same memory representation as &[u8]. char is four bytes, not one.
1 comments

Thanks Steve.
No problem! It's an easy mistake to make.