Skip to content

Commit 9355abd

Browse files
committed
Making order of arguments more coherent.
1 parent 75ae63a commit 9355abd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/code/projects/Tree/Tree/BTree.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public virtual bool Find(T dataP)
113113
return found;
114114
}
115115

116-
private bool Find(Node nodeP, T dataP)
116+
private bool Find(T dataP, Node nodeP)
117117
{
118118
bool found = false;
119119
if (nodeP != null)
@@ -125,8 +125,8 @@ private bool Find(Node nodeP, T dataP)
125125
else
126126
{
127127
found =
128-
Find(nodeP.left, dataP)
129-
|| Find(nodeP.right, dataP);
128+
Find(dataP, nodeP.left)
129+
|| Find(dataP, nodeP.right);
130130
}
131131
}
132132
return found;

0 commit comments

Comments
 (0)