doc: correct spelling of user-data/user_data JS/lua helpers

This commit is contained in:
rcombs 2023-01-28 14:55:24 -06:00
parent 3ec2a0988a
commit 0f3a041796
2 changed files with 16 additions and 16 deletions

View File

@ -186,13 +186,13 @@ meta-paths like ``~~/foo`` (other JS file functions do expand meta paths).
``mp.utils.subprocess_detached(t)``
``mp.utils.udata_set(path, val)``
``mp.utils.user_data_set(path, val)``
``mp.utils.udata_get(path)``
``mp.utils.user_data_get(path)``
``mp.utils.udata_del(path)``
``mp.utils.user_data_del(path)``
``mp.utils.udata_observe(path, type, fn)``
``mp.utils.user_data_observe(path, type, fn)``
``mp.utils.get_env_list()``

View File

@ -824,31 +824,31 @@ strictly part of the guaranteed API.
This is a legacy wrapper around calling the ``run`` command with
``mp.commandv`` and other functions.
``utils.udata_set(path, val)``
Sets a udata value.
``utils.user_data_set(path, val)``
Sets a user-data value.
``path`` is a path within the ``udata`` property.
``path`` is a path within the ``user-data`` property.
This is a convenience wrapper around ``mp.set_property_native``.
``utils.udata_get(path)``
Gets a udata value.
``utils.user_data_get(path)``
Gets a user-data value.
``path`` is a path within the ``udata`` property.
``path`` is a path within the ``user-data`` property.
This is a convenience wrapper around ``mp.get_property_native``.
``utils.udata_del(path)``
Deletes a udata value.
``utils.user_data_del(path)``
Deletes a user-data value.
``path`` is a path within the ``udata`` property.
``path`` is a path within the ``user-data`` property.
This is a convenience wrapper around ``mp.del_property_native``.
``utils.udata_observe(path, type, fn)``
Observes a udata value.
``utils.user_data_observe(path, type, fn)``
Observes a user-data value.
``path`` is a path within the ``udata`` property.
``path`` is a path within the ``user-data`` property.
See ``mp.observe_property`` for further details.