string:tokens/2

This commit is contained in:
Feng Lee 2016-07-22 11:41:11 +08:00
parent 3f9de8c073
commit 67637408fc
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ list() ->
end.
plugin(CfgFile) ->
[AppName | _] = sting:tokens(CfgFile, "."),
[AppName | _] = string:tokens(CfgFile, "."),
{ok, Attrs} = application:get_all_key(AppName),
Ver = proplists:get_value(vsn, Attrs, "0"),
Descr = proplists:get_value(description, Attrs, ""),