Skip to content

Commit

Permalink
Add doc for DEFAULT_LOAD_FACTOR
Browse files Browse the repository at this point in the history
  • Loading branch information
GarrisonJ committed Apr 24, 2024
1 parent 1c31cb9 commit 65ebe6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/sorted_containers/sorted_array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ module SortedContainers
class SortedArray
include Enumerable

# The default load factor for the array.
# Sublists are split when they exceed 2 * load_factor
DEFAULT_LOAD_FACTOR = 1000

attr_reader :size
Expand Down

0 comments on commit 65ebe6e

Please sign in to comment.