rust_programming_book 0.1.1

Programming works from THE RUST PROGRAMMING LANGUAGE
Documentation
1
2
3
4
5
6
7
pub fn factorial(x: u32) -> u32 {
    if x == 1 || x == 0 {
        1
    } else {
        x * factorial(x - 1)
    }
}