From da505c8a53be2e305f099b3def31b65015abbdda Mon Sep 17 00:00:00 2001 From: Andrei Zavada Date: Thu, 4 Aug 2016 13:50:38 +0300 Subject: [PATCH] add a couple of specs in riakc_utils --- src/riakc_utils.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/riakc_utils.erl b/src/riakc_utils.erl index 36111ba2..fba298c2 100644 --- a/src/riakc_utils.erl +++ b/src/riakc_utils.erl @@ -24,6 +24,7 @@ -export([wait_for_list/1, characters_to_unicode_binary/1]). +-spec wait_for_list(non_neg_integer()) -> {ok, list()} | {error, any()}. %% @doc Wait for the results of a listing operation wait_for_list(ReqId) -> wait_for_list(ReqId, []). @@ -34,6 +35,7 @@ wait_for_list(ReqId, Acc) -> {ReqId, {_, Res}} -> wait_for_list(ReqId, [Res|Acc]) end. +-spec characters_to_unicode_binary(string()|binary()) -> binary(). %% @doc Convert to unicode binary with informative errors %% @throws {unicode_error, ErrMsg} characters_to_unicode_binary(String) ->