fn main() {
let s = String::from("hello");
let hello = &s[5..];
println!("{}", hello);
}
Why does this code run without a panic? I think this is a condition where the index goes beyond the size of the content. The output of this code example shows nothing.