add more examples on string interpolation

This commit is contained in:
Valentin Gagarin 2022-08-12 14:27:03 +02:00
parent c209e6e108
commit 6ba8d6dc82

View file

@ -38,7 +38,7 @@ the rest.
</tr>
<tr>
<td>
`"Hello world"`
`"hello world"`
</td>
<td>
A string
@ -58,10 +58,14 @@ the rest.
</tr>
<tr>
<td>
`"hello ${ { a = "world" }.a }"`
`"1 2 ${3}"`
`"${pkgs.bash}/bin/sh"`
</td>
<td>
A string containing an expression (expands to `"/nix/store/<hash>-bash-<version>/bin/sh"`)
String interpolation (expands to `"hello world"`, `"1 2 3"`, `"/nix/store/<hash>-bash-<version>/bin/sh"`)
</td>
</tr>
<tr>