crate_public 0.1.0

First crate on rust course 1
Documentation
/*
These lines are not going to be apart of the documentation
*/
// These comments will not be available in the documentation

//! # Basic math crate
//! This is a collection of some generally used math functions
//!
/// Computes a square of an input number
/// # Examples
/// # Tests
/// ```
/// let n = 5;
/// let answer = crate_public::square(n);
/// assert_eq!(25, answer);
/// ```
///
/// # limitations
///
/// # Some other section
pub fn square(num: i32) -> i32 {
    num * num
}

/// Computes a cube of an input number
/// # Examples
/// # Tests
/// ```
/// let n = 5;
/// let answer = crate_public::cube(n);
/// assert_eq!(125, answer);
/// ```
///
/// # limitations
///
/// # Some other section
pub fn cube(num: i32) -> i32 {
    num * num * num
}