forked from lix-project/lix
add more examples on string interpolation
This commit is contained in:
parent
c209e6e108
commit
6ba8d6dc82
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue