devrust_docs/lib.rs
1//! # My Crate
2//!
3//! `my_crate` is a collection of utilities to make performing certain
4//! calculations more convenient.
5
6pub use crate::a::b::c::d::e::f::g::foo;
7
8/// Adds one to the number given.
9// --snip--
10
11/// Adds one to the number given.
12///
13/// # Examples
14///
15/// ```
16/// let arg = 5;
17/// let answer = devrust_docs::add_one(arg);
18///
19/// assert_eq!(6, answer);
20/// ```
21pub fn add_one(x: i32) -> i32 {
22 x + 1
23}
24
25/// mods
26pub mod a {
27 pub mod b {
28 pub mod c {
29 pub mod d {
30 pub mod e {
31 pub mod f {
32 pub mod g {
33 pub fn foo() {
34 ()
35 }
36 }
37 }
38 }
39 }
40 }
41 }
42}