fn test(){
  println!("This is a function!");
}
fn main(){
  test();
}

See: Functions

Comments