We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b6b5f9 commit d7994a4Copy full SHA for d7994a4
source/tutorials/module-system/deep-dive.md
@@ -394,13 +394,14 @@ Let's say that in our application we want to have a different default behavior t
394
This can be done with the `default` argument to [`mkOption`](https://github.com/NixOS/nixpkgs/blob/master/lib/options.nix).
395
Its value will be used if the value of the option declaring it is not specified otherwise.
396
397
-Add the corresponding line:
+Modify the corresponding line:
398
399
```{code-block} diff
400
:caption: default.nix
401
map = {
402
zoom = lib.mkOption {
403
type = lib.types.nullOr lib.types.int;
404
+- default = null;
405
+ default = 10;
406
};
407
0 commit comments