Skip to content

Commit d21e5f2

Browse files
committed
chore: update formatting and version
1 parent c1f77b2 commit d21e5f2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

fibonacci-1/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "fibonacci-1"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

fibonacci-1/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
fn fibonacci(n: u64) -> u64 {
22
if n == 0 || n == 1 {
3-
return 0
3+
return 0;
44
} else {
5-
fibonacci(n - 1) + fibonacci(n - 2)
5+
fibonacci(n - 1) + fibonacci(n - 2)
66
}
77
}
88

0 commit comments

Comments
 (0)