rust_CSE_docs 0.1.0

A Rust crate for modeling basic documentation and CSE-related examples.
Documentation
//! # rust_CSE_docs
//!
//! A simple crate for CSE practice, providing utility functions like adding numbers
//! and checking if a number is even.

/// Adds two integers.
///
/// # Examples
///
/// ```
/// use rust_CSE_docs::add;
/// assert_eq!(add(2, 3), 5);
/// ```
pub fn add(a: i32, b: i32) -> i32 {
    a + b
}

/// Checks if a number is even.
///
/// # Examples
///
/// ```
/// use rust_CSE_docs::is_even;
/// assert!(is_even(4));
/// assert!(!is_even(5));
/// ```
pub fn is_even(n: i32) -> bool {
    n % 2 == 0
}