Created
February 25, 2020 08:07
-
-
Save ruimo/5b2f45bdfa543e34d1a175b8a181ed38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Point { | |
x: i32, | |
y: i32, | |
} | |
fn main() { | |
let p = Point {x: 1, y: 2}; | |
println!("point: {}, {}", p.x, p.y); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment