Skip to content

Commit

Permalink
Set the default limit to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
dsantosmerino committed May 12, 2018
1 parent 130f2d2 commit 3d49d06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/odometex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ defmodule Odometex do

alias Odometex.Calculator

@compare_default_options %{order: :best_match, limit: 20}
@compare_default_options %{order: :best_match, limit: 5}

@doc """
Returns a list of results with the number of times of each one
## Examples
iex> Odometex.compare(20, limit: 5)
iex> Odometex.compare(20)
[
%Odometex.Result{label: "Bowling lane", meters: 19, times: 1.052632},
%Odometex.Result{label: "Blue Whale (female)", meters: 25, times: 0.8},
Expand Down

0 comments on commit 3d49d06

Please sign in to comment.