String, str, &String, &str

Here's a recent post summarizing slices (including str), and another diagraming the difference between &Vec<_> and &[_] (which is the same as the difference between &String and &str).

This post is a repost from another recent thread :slight_smile:.

5 Likes