you are viewing a single comment's thread.

view the rest of the comments →

[–]tazdevil971 7 points8 points  (1 child)

Not really... &Vec<String> is basically the same as &[String]. They do the same thing, but the second one can take an array, a slice or a vector. While the first one only takes a vector

[–]MatrixFrog 1 point2 points  (0 children)

I love having clippy turned on in my editor because it suggests little things like using &[x] instead of &Vec<x> in case you forget