rust_14/
lib.rs

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