Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
steveklabnik
on Feb 4, 2019
|
parent
|
context
|
favorite
| on:
Learning Rust via Advent of Code
&str is
not
the same as &[char]. &str has the same memory representation as &[u8]. char is four bytes, not one.
gridspy
on Feb 5, 2019
[–]
Thanks Steve.
steveklabnik
on Feb 5, 2019
|
parent
[–]
No problem! It's an easy mistake to make.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: