Skip to content

Commit

Permalink
added comment on SimpleSkiplist#search method
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Andreev committed May 2, 2008
1 parent 913a7ce commit a62ddf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/strokedb/data_structures/simple_skiplist.rb
Expand Up @@ -47,7 +47,10 @@ def empty?
# then collect all the values.
#
# 1) Define a direction of search
#
# 2) Find the first node in the range start_key..end_key.
# 3) Skip a given number of nodes (:offset).
# 4) Collect nodes while :end_key prefix matches and :limit
# is not exceeded.
#
def search(start_key, end_key, limit, offset, reverse, with_keys)
offset ||= 0
Expand Down

0 comments on commit a62ddf4

Please sign in to comment.