refactor: rename Field to Struct for ref type create function

Hocon type reference is actually a child-struct's struct name
not necessarily the same name as the parent-sutrct's field name

This commit changes the variable name for more clarity
This commit is contained in:
Zaiming (Stone) Shi 2022-08-15 09:16:00 +02:00
parent e8dc7bc1b0
commit ecbf867551
1 changed files with 2 additions and 2 deletions

View File

@ -2094,9 +2094,9 @@ sc(Type, Meta) -> hoconsc:mk(Type, Meta).
map(Name, Type) -> hoconsc:map(Name, Type).
ref(Field) -> hoconsc:ref(?MODULE, Field).
ref(StructName) -> hoconsc:ref(?MODULE, StructName).
ref(Module, Field) -> hoconsc:ref(Module, Field).
ref(Module, StructName) -> hoconsc:ref(Module, StructName).
mk_duration(Desc, OverrideMeta) ->
DefaultMeta = #{