2026-spring rust-ownership/lessons/04-slices/README.md

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 check is much faster than cargo build while you are still fixing errors.

Run it

cargo run

Exercises

See exercises.md. Ask in the forum once you've tried.