7 months ago
21 lines511 B
Lesson 4: Slices
We look at slices the way working developers use it, with examples you can change and run right away.
Full lesson: https://glibcode.net/courses/rust-ownership/lessons/4
Files
src/main.rs: string and array slices
Tip:
cargo checkis much faster thancargo buildwhile you are still fixing errors.
Run it
cargo run
Exercises
See exercises.md. Ask in the forum once you've tried.