From 3d49d061d5ee136b2669664a937b3f797ecc6a74 Mon Sep 17 00:00:00 2001 From: dsantosmerino Date: Sat, 12 May 2018 12:52:45 +0200 Subject: [PATCH] Set the default limit to 5 --- lib/odometex.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/odometex.ex b/lib/odometex.ex index 031921f..fde9dc8 100644 --- a/lib/odometex.ex +++ b/lib/odometex.ex @@ -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},