Просмотр исходного кода

Merge pull request #39 from gspasov/patch-1

Fix return types specification of get/3
Namdak Tonpa 6 лет назад
Родитель
Сommit
cb137c10d1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/api.hrl

+ 1 - 1
include/api.hrl

@@ -50,7 +50,7 @@
 % read ops
 
 -spec get(Tab :: atom(), Key :: any()) -> {ok,any()} | {error,duplicated} | {error,not_found}.
--spec get(Tab :: atom(), Key :: any(), Value :: any()) -> {ok,any()}.
+-spec get(Tab :: atom(), Key :: any(), Value :: any()) -> {ok,any()} | {error,duplicated} | {error,not_found}.
 -spec index(Tab :: atom(), Key :: any(), Value :: any()) -> list(tuple()).
 
 % import/export