mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
lib.modules.importApply: Fix doc typo; _key
→ key
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:
parent
6f2136368a
commit
1fb1446380
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue