Advertisement
cwchen

[Rust] function return value expression

Aug 23rd, 2017
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.04 KB | None | 0 0
  1. fn add_one(x: i32) -> i32 {
  2.     x + 1
  3. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement