lib.modules.importApply: Fix doc typo; _keykey

The `importApply` docs reference using the `_key` attr along with
`importApply` or `_file`, however the actual attr name used by the
module system is `key`.
This commit is contained in:
Matt Sturgeon 2025-05-08 15:32:43 +01:00
parent 6f2136368a
commit 1fb1446380
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -1881,7 +1881,7 @@ let
This function does not add support for deduplication and `disabledModules`, This function does not add support for deduplication and `disabledModules`,
although that could be achieved by wrapping the returned module and setting although that could be achieved by wrapping the returned module and setting
the `_key` module attribute. the `key` module attribute.
The reason for this omission is that the file path is not guaranteed to be The reason for this omission is that the file path is not guaranteed to be
a unique identifier for the module, as two instances of the module may a unique identifier for the module, as two instances of the module may
reference different `arg`s in their closures. reference different `arg`s in their closures.