Tour of Rust Table of Contents

Functions

A function has zero or more parameters.

In this example, add takes two arguments of type i32 (signed integer of 32-bit length).

Function names are always in snake_case.