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

> An example is how the `iter` method on fixed-size arrays changed in the most recent edition.

Can you explain?

The array type doesn't have an iter() method. It will coerce into a slice, which does have an iter() method, but doesn't care whether it's an array we're slicing.



I was misremembering, it was `into_iter` rather than `iter` that was changed. The documentation for the change can be found here: https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterat...




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

Search: