From 5bbeb01ac893b496c336f91fba289395f9512621 Mon Sep 17 00:00:00 2001 From: yangchaojun Date: Fri, 31 Jul 2015 17:59:14 +0800 Subject: [PATCH] type dict/0 is deprecated and will be removed in OTP 18.0; use use dict:dict/0 or preferably dict:dict/2 -spec as_dict(Result) -> Dict when Result :: #result_packet{}, Dict :: dict(). modified as %% @spec as_dict(Result) -> Dict %% when %% Result :: #result_packet{}, %% Dict :: dict(). --- src/emysql.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/emysql.erl b/src/emysql.erl index 2e810d41..2591f49c 100644 --- a/src/emysql.erl +++ b/src/emysql.erl @@ -655,10 +655,10 @@ result_type(#eof_packet{}) -> eof. %% fetch_foo() -> %% Res = emysql:execute(pool1, "select * from foo"), %% Res:as_dict(Res). --spec as_dict(Result) -> Dict - when - Result :: #result_packet{}, - Dict :: dict(). +%% @spec as_dict(Result) -> Dict +%% when +%% Result :: #result_packet{}, +%% Dict :: dict(). as_dict(Res) -> emysql_conv:as_dict(Res).