more_about_cargo_and_crates/
lib.rs

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