Skip to content

Commit ed1c80d

Browse files
Added files
1 parent 7ba0ae1 commit ed1c80d

8 files changed

Lines changed: 26 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package]
2+
name = "hello_rust"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]

examples/01_variables.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
fn main() {
2+
3+
// Part 1 : Immutable vs Mutable Variables
4+
let x = 5;
5+
let mut y = 10;
6+
y = 20 ;
7+
8+
println!("x = {} ", x);
9+
println!("y = {} ", y);
10+
11+
//
12+
}

examples/02_functions.rs

Whitespace-only changes.

examples/03_ownership_and_borrowing.rs

Whitespace-only changes.

examples/04_structs_enums.rs

Whitespace-only changes.

examples/05_error_handling.rs

Whitespace-only changes.

0 commit comments

Comments
 (0)