aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCobus Carstens <[email protected]>2014-03-05 15:30:48 +0200
committerCobus Carstens <[email protected]>2014-03-05 15:30:48 +0200
commit75937381ec52e1714cfbc5936441b15bb1240bdb (patch)
treed7aa26cb5b69812877ad947f09166d8cad260179
parentc199bd2923e7d733e60beb9bd27b3852cbb2e699 (diff)
downloadotp-75937381ec52e1714cfbc5936441b15bb1240bdb.tar.gz
otp-75937381ec52e1714cfbc5936441b15bb1240bdb.tar.bz2
otp-75937381ec52e1714cfbc5936441b15bb1240bdb.zip
Fix comment that differs from code
The comment in the code state that the tree is traversed to the left, when in fact it is traversed to the right.
-rw-r--r--erts/emulator/beam/erl_db_tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_db_tree.c b/erts/emulator/beam/erl_db_tree.c
index 25029ba90f..a62a83a928 100644
--- a/erts/emulator/beam/erl_db_tree.c
+++ b/erts/emulator/beam/erl_db_tree.c
@@ -485,7 +485,7 @@ static int db_first_tree(Process *p, DbTable *tbl, Eterm *ret)
*ret = am_EOT;
return DB_ERROR_NONE;
}
- /* Walk down to the tree to the left */
+ /* Walk down the tree to the left */
if ((stack = get_static_stack(tb)) != NULL) {
stack->pos = stack->slot = 0;
}
@@ -531,7 +531,7 @@ static int db_last_tree(Process *p, DbTable *tbl, Eterm *ret)
*ret = am_EOT;
return DB_ERROR_NONE;
}
- /* Walk down to the tree to the left */
+ /* Walk down the tree to the right */
if ((stack = get_static_stack(tb)) != NULL) {
stack->pos = stack->slot = 0;
}