summaryrefslogtreecommitdiffstats
path: root/aconf/model/root.lua
diff options
context:
space:
mode:
Diffstat (limited to 'aconf/model/root.lua')
-rw-r--r--aconf/model/root.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/aconf/model/root.lua b/aconf/model/root.lua
index 32b013d..301e493 100644
--- a/aconf/model/root.lua
+++ b/aconf/model/root.lua
@@ -63,12 +63,12 @@ M.topology = setmetatable(
--- inject a new field to the root model.
-- @tparam string name name of the field
--- @param field (<i>[&lt;Field&gt;](#Field_constructors)</i> or
+-- @param field (<i>[&lt;Field&gt;](#Overview_of_field_classes)</i> or
-- <i>[&lt;Model&gt;](#new)</i>) type of the field, specified by a
--- field constructor or instance. Can also be specified by a model.
+-- field class or instance. Can also be specified by a model.
-- @tparam ?{[string]=any,...} params field parameters. Applicable
-- when the type of the field is specified by a model or a field
--- constructor.
+-- class.
function M.register(name, field, params)
if not params then params = {} end
params.create = true