Course lesson
Rustlings strings1: String literals are string slices, not String structs
README for this exercise.
- Duration
- 0 min
- Access
- Free
- Transcript
- Available
README for this exercise.
String literals are a bit special when it comes to Strings and string slices (&str). String literals are string slices that refer to “preallocated text” that is stored in read-only memory as part of the executable.