This website requires JavaScript.
Explore
Help
Sign In
mirror
/
RosettaCodeData
mirror of
https://github.com/acmeism/RosettaCodeData.git
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
0bf4da02c3
RosettaCodeData
/
Task
/
String-length
/
Rust
/
string-length-2.rust
5 lines
109 B
Plaintext
Raw
Blame
History
fn main() {
let s = "文字化け"; // UTF-8
println!("Character length: {}", s.chars().count());
}
Reference in New Issue
View Git Blame
Copy Permalink