This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
fnmain(){
lets1=String::from("hello");
letlen=calculate_length(&s1);
println!("The length of '{}' is {}.",s1,len);
}
// ANCHOR: here
fncalculate_length(s: &String)-> usize{// s 是 String 的引用