Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

&str is not the same as &[char]. &str has the same memory representation as &[u8]. char is four bytes, not one.


Thanks Steve.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: