Y
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
gridspy
2687 days ago
Thanks Steve.
link
steveklabnik
2687 days ago
No problem! It's an easy mistake to make.
link