Skip to content

Commit

Permalink
fix formatting/punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
fricklerhandwerk authored Nov 9, 2023
1 parent 8a74a98 commit 0c4e4b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/guides/best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ rec {
```

A common pitfall is to introduce a hard to debug error `infinite recursion` when shadowing a name.
The simplest example for this is: `let a = 1; in rec { a = a; }`.
The simplest example for this is:

```{code-block} nix
let a = 1; in rec { a = a; }
```

:::{tip}
Avoid `rec`. Use `let ... in`.
Expand Down

0 comments on commit 0c4e4b6

Please sign in to comment.