rust_closure 0.1.0

Rust closure
Documentation
//! # My Crate
//! 
//! `add_one` adds one to its argument.
//! calculations more convenient.

/// Adds one to the number given.
/// 
/// # Examples
/// 
/// ```
/// let arg = 5;
/// let answer = closure::add_one(arg);
/// 
/// assert_eq!(6, answer);
/// ```


pub fn add_one(x :i32) -> i32 {
  x + 1
}