From 27514d58573ce1f844af4ea60afa72c7f58f1cd7 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Thu, 21 Aug 2025 22:09:29 +0200 Subject: vault backup: 2025-08-21 22:09:29 --- Difference between string slice and slice of strings.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Difference between string slice and slice of strings.md (limited to 'Difference between string slice and slice of strings.md') diff --git a/Difference between string slice and slice of strings.md b/Difference between string slice and slice of strings.md new file mode 100644 index 0000000..1105ce7 --- /dev/null +++ b/Difference between string slice and slice of strings.md @@ -0,0 +1,4 @@ +A string slice: `&str` +A slice of strings: `&[String]` + +`&[String]` for example can be used to reference a subset of a `Vec` while `&str` references part of a `String`. \ No newline at end of file -- cgit v1.2.3