1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! Foo //! Library functions for doing math. /// Adds two integers. /// /// # Example /// ``` /// assert_eq!(foo::plus(2, 3), 5); /// ``` pub fn plus(x: i32, y: i32) -> i32 { x + y } pub mod garden; pub use self::garden::minus;