What is an alternative way of writing slice that produces the same result?
...
let s = String::form("hello");
let slice = &s[0..2];
What is an alternative way of writing slice that produces the same result?
...
let s = String::form("hello");
let slice = &s[0..2];