Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

Rust function

fn five() -> i32 {
    5
}

fn main() {
    let x = five();

    println!("The value of x is: {x}");
}
The value of x is: 5
Source by doc.rust-lang.ru #
 
PREVIOUS NEXT
Tagged: #Rust #function
ADD COMMENT
Topic
Name
9+6 =