From 4648075f7fae1d7e3075a68dcf665cfe28b5b956 Mon Sep 17 00:00:00 2001 From: Joseph Wayne Norton Date: Sat, 1 Sep 2012 21:36:06 +0900 Subject: [PATCH] Rename predefined type void() to none() --- src/ubf_thrift_plugin.con | 2 +- src/ubf_thrift_plugin.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ubf_thrift_plugin.con b/src/ubf_thrift_plugin.con index bb959a9..4edd4fb 100644 --- a/src/ubf_thrift_plugin.con +++ b/src/ubf_thrift_plugin.con @@ -24,7 +24,7 @@ tfield_type() :: 'T-VOID' | 'T-BOOL' | 'T-BYTE' | 'T-I08' | 'T-I16' | 'T-I32' | 'T-U64' | 'T-I64' | 'T-DOUBLE' | 'T-BINARY' | 'T-STRUCT' | 'T-MAP' | 'T-SET' | 'T-LIST'; tfield_id() :: integer(); -tfield_data() :: void() | tboolean() | integer() +tfield_data() :: none() | tboolean() | integer() | integer() | float() | binary() | tstruct() | tmap() | tset() | tlist(); diff --git a/src/ubf_thrift_plugin.erl b/src/ubf_thrift_plugin.erl index 7b59dbb..71d6672 100644 --- a/src/ubf_thrift_plugin.erl +++ b/src/ubf_thrift_plugin.erl @@ -42,7 +42,7 @@ handlerStart(_Args) -> ack = install_handler(self(), fun handlerEvent/1), {accept,ok,none,unused}. -%% @spec handlerStop(Pid::pid(), Reason::any(), StateData::term()) -> void() +%% @spec handlerStop(Pid::pid(), Reason::any(), StateData::term()) -> none() %% @doc stop handler handlerStop(_Pid, _Reason, _StateData) -> unused.