Skip to main content

c14_2_publishing_crate/
lib.rs

1//! # C14 2 Publishing Crate
2//!
3//! `c14_2_publishing_crate` is a sample library to test the upload of a crate to the cloud.
4//! Following the orientations of the Rust book.
5
6/// Adds one to the number given.
7/// 
8/// # Examples
9///
10/// ```
11/// let arg = 5;
12/// let answer = c14_2_publishing_crate::add_one(arg);
13/// assert_eq!(6, answer);
14/// ```
15pub fn add_one(x: i32) -> i32 {
16    x + 1
17}
18