Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yasonk committed Nov 22, 2024
1 parent 7871b4a commit d74ea4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/mast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,9 @@ impl MastNodeId {
Self::from_u32_with_node_count(value, mast_forest.nodes.len())
}

/// Returns a new [`MastNodeId`] with the provided `node_id`, or an error if `node_id` is greater
/// than the number of nodes in the [`MastForest`] for which this ID is being constructed.
/// Returns a new [`MastNodeId`] with the provided `node_id`, or an error if `node_id` is
/// greater than the number of nodes in the [`MastForest`] for which this ID is being
/// constructed.
pub fn from_usize_safe(
node_id: usize,
mast_forest: &MastForest,
Expand Down

0 comments on commit d74ea4a

Please sign in to comment.