Skip to content

Commit 778897b

Browse files
committed
fix typo
1 parent d947010 commit 778897b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/econfig.erl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@
2020
set_value/3, set_value/4, set_value/5,
2121
delete_value/2, delete_value/3, delete_value/4]).
2222

23-
-type conf() :: atom() | string() | binary().
23+
-type conf() :: atom() | string() | binary().
2424
-type inifile() :: string().
2525
-type inifiles() :: [inifile()].
26-
-type options() :: [autoreload].
26+
-type options() :: [autoreload | {change_fun, fun()}].
2727
-type section() :: string().
2828
-type key() :: string().
2929
-type value() :: string().
3030
-type kvs() :: [{key(), value()}].
3131

32+
-export_type([conf/0, inifile/0, inifiles/0, options/0, section/0, key/0, value/0, kvs/0]).
33+
3234
%% @doc register inifiles or config dirs
3335
-spec register_config(ConfigName::conf(), IniFiles::inifiles()) -> ok | {error, any()}.
3436
register_config(ConfigName, IniFiles) ->
@@ -140,7 +142,7 @@ get_value(ConfigName, Section) ->
140142
econfig_server:get_value(ConfigName, Section).
141143

142144
%% @doc get value for a key in a section
143-
-spec get_value(ConfigName::conf(), Section::section(), Key::key()) -> Value::value() | undefined.
145+
-spec get_value(ConfigName::conf(), Section::section(), Key::key()) -> Value::value() | undefined.
144146
get_value(ConfigName, Section, Key) ->
145147
econfig_server:get_value(ConfigName, Section, Key).
146148

0 commit comments

Comments
 (0)