• Sign in

rust / easel3d-wasm · Files

Dogs2 white

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Forks
  • Snippets
  • Network
  • easel3d-wasm
  • functions
  • src
  • main.rs
  • First examples from rust book
    0f4f515f
    Georg Hopp authored
    2019-11-22 14:45:45 +0100  
    Browse Files »
main.rs 219 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12
fn main() {
    another_function(5, add_five(6));
}

fn another_function(x: i32, y: i32) {
    println!("The value of x id: {}", x);
    println!("The value of y id: {}", y);
}

fn add_five(x: i32) -> i32 {
    x + 5
}