Skip to content

Commit

Permalink
Fix the documentation formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
clementwanjau committed Jul 8, 2024
1 parent 986bf20 commit bc821be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/node/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#[cfg(feature = "serde")]
use serde::{ser::SerializeStruct, Deserialize, Serialize};
use serde::{Deserialize, ser::SerializeStruct, Serialize};

use crate::lib::*;
#[cfg(feature = "async")]
use crate::lib::Arc;
#[cfg(not(feature = "async"))]
use crate::lib::Rc;
use crate::lib::*;

#[cfg(feature = "auto_id")]
mod auto_id;
Expand Down Expand Up @@ -51,8 +51,7 @@ where
///
/// # Type Parameters
///
/// * `Q` - The type of the unique id of the node. Odd, I know but this is for flexibility. Some people might want to use
/// a string as the unique id of the node. Others might want to use an integer. This is why the unique id is a generic type.
/// * `Q` - The type of the unique id of the node. Odd, I know but this is for flexibility. Some people might want to use a string as the unique id of the node. Others might want to use an integer. This is why the unique id is a generic type.
/// * `T` - The type of the value of the node.
///
/// # Fields
Expand Down
3 changes: 1 addition & 2 deletions src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,7 @@ where
/// # Arguments
///
/// * `node_id` - The id of the node to get the subsection from.
/// * `generations` - The number of descendants to include in the subsection. If `None`, all the
/// descendants of the node are included in the subsection.
/// * `generations` - The number of descendants to include in the subsection. If `None`, all the descendants of the node are included in the subsection.
///
/// # Returns
///
Expand Down

0 comments on commit bc821be

Please sign in to comment.