RosettaCodeData/Task/Reverse-a-string/Rust/reverse-a-string-2.rust

2 lines
76 B
Plaintext

let reversed:~str = "一二三四五六七八九十".chars_rev().collect();