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

View File

@@ -1881,7 +1881,7 @@ let
This function does not add support for deduplication and `disabledModules`,
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
a unique identifier for the module, as two instances of the module may
reference different `arg`s in their closures.