Function square
Source pub fn square(num: i32) -> i32
Expand description
A function that returns the square of a number
§Examples
§Tests
let n = 5;
let answer = publishing::square(n);
assert_eq!(answer, 25);
§Limitations
§Some other section
§Examples
use publishing::square;
assert_eq!(square(5), 25);