Advertisement
cwchen

[Rust] Iterating a Rust string with chars method

Aug 26th, 2017
739
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. fn main() {
  2. assert_eq!("你好,麥可".chars().nth(1).unwrap(), '好');
  3. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement