Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

Commit

Permalink
Clarified discrepancy in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Timidger committed Sep 10, 2016
1 parent 24b79b9 commit a605009
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/layout/core/graph_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,8 @@ impl InnerTree {
}

/// Attempts to get an ancestor matching the matching type
///
/// Note this does *NOT* check the given node.
pub fn ancestor_of_type(&self, node_ix: NodeIndex,
container_type: ContainerType) -> Option<NodeIndex> {
let mut curr_ix = node_ix;
Expand All @@ -547,6 +549,8 @@ impl InnerTree {

/// Attempts to get a descendant of the matching type
/// Looks down the left side of the tree first
///
/// Note this *DOES* check the given node.
pub fn descendant_of_type(&self, node_ix: NodeIndex,
container_type: ContainerType) -> Option<NodeIndex> {
if let Some(container) = self.get(node_ix) {
Expand Down

0 comments on commit a605009

Please sign in to comment.