From 95d5ab656a501f36437ea8530d7c4ece02789a17 Mon Sep 17 00:00:00 2001 From: Tahinli <> Date: Wed, 31 May 2023 13:33:35 +0300 Subject: [PATCH] correction --- 13-slice/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/13-slice/src/main.rs b/13-slice/src/main.rs index 8497d92..2f4a8a4 100644 --- a/13-slice/src/main.rs +++ b/13-slice/src/main.rs @@ -4,7 +4,7 @@ fn main() //mutable because we will clean it later. let mut s = String::from("Yellow Duck"); - //it's not &String, it's literal thanks to slice + //it's not &String, it's literal reference thanks to slice let firts = firts_world(&s[..]); println!("{}", firts); s.clear();