diff options
| author | Carlos Maiolino <[email protected]> | 2025-09-06 09:30:14 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-09-06 09:30:14 +0200 |
| commit | 93b1c04a218858ecc59b6b8929103695b7b8c2a0 (patch) | |
| tree | 7ae24ff4b2ef06c8d961f2c908ba8511e1fc995b /rust/chap4/plus_one.rs | |
| parent | 973e27b243ea7f12b6743894465c67a4a6a87eb2 (diff) | |
Move rust playground here
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'rust/chap4/plus_one.rs')
| -rw-r--r-- | rust/chap4/plus_one.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rust/chap4/plus_one.rs b/rust/chap4/plus_one.rs new file mode 100644 index 0000000..e28f415 --- /dev/null +++ b/rust/chap4/plus_one.rs @@ -0,0 +1,10 @@ +fn plus_one(i: i32) -> i32 { + i + 1 +} + +fn main() { + let i = 3; + + println!("Num {}", plus_one(i)); + +} |
