template_lib_crateio 0.1.0

crate template
Documentation
//! # utils
//! A module for math operations
pub mod utils {
    /// Adds two numbers
    /// # Examples
    /// ```rust
    /// use template_lib_crateio::utils;
    /// let result = utils::add(1, 2);
    /// assert_eq!(result, 3);
    /// ```
    /// # Panic
    ///  parameters or result large then 255 will panic
    ///
    pub fn add(x: i32, y: i32) -> i32 {
        x + y
    }
}
#[cfg(test)]
mod tests {
    use super::utils;
    #[test]
    fn test_add() {
        assert_eq!(utils::add(1, 2), 3);
    }
}

// cio4AHez6Uv69x0lwdoe5Zrxdp2ggrBMjMj