mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
11 lines
131 B
Rust
11 lines
131 B
Rust
fn factorial(n: u64) -> u64 {
|
|
if n == 0 {
|
|
return 1;
|
|
}
|
|
n * factorial(n - 1)
|
|
}
|
|
|
|
fn main() {
|
|
println!("Hello, world!");
|
|
}
|