Skip to content

Latest commit

 

History

History

advfunctions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Adv functions

  • calling function from other files

  • hello.rs:

pub fn helloworld() {
    println!("Hello, World!");
}
  • main.rs:
mod hello;

fn main() {
    hello::helloworld();
}
$ cargo run