1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Theses lines are not going to be part of the code
*/
//! # Basic math Crate
//! Collection of some generally used math function
/// 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);
/// ```
/// A function that returns the cube of a number
///
/// # Examples
/// # Tests
/// ```
/// let n = 5;
/// let answer = publishing::cube(n);
/// assert_eq!(answer, 125);
/// ```
///
/// # Limitations
///
/// # Some other section
///
/// # Examples
///
/// ```
/// use publishing::cube;
///
/// assert_eq!(cube(5), 125);
/// ```