Skip to content

Commit d7994a4

Browse files
dhoppephiliptaron
authored andcommitted
Add previous value to diff
1 parent 8b6b5f9 commit d7994a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/tutorials/module-system/deep-dive.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,13 +394,14 @@ Let's say that in our application we want to have a different default behavior t
394394
This can be done with the `default` argument to [`mkOption`](https://github.com/NixOS/nixpkgs/blob/master/lib/options.nix).
395395
Its value will be used if the value of the option declaring it is not specified otherwise.
396396

397-
Add the corresponding line:
397+
Modify the corresponding line:
398398

399399
```{code-block} diff
400400
:caption: default.nix
401401
map = {
402402
zoom = lib.mkOption {
403403
type = lib.types.nullOr lib.types.int;
404+
- default = null;
404405
+ default = 10;
405406
};
406407
};

0 commit comments

Comments
 (0)