fabio_exp_doc/lib.rs
1//! # My Crate
2//!
3//! `my_crate` is a collection of utilities to make performing certain
4//! calculations more convenient.
5
6/// Adds one to the number given.
7/// ```
8/// let arg = 5;
9/// let answer = my_crate::add_one(arg);
10///
11/// assert_eq!(6, answer);
12/// ```
13pub fn add_one(x: i32) -> i32 {
14 x + 1
15}
16