mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-06-21 20:41:25 +02:00
fix: can not use integer in string interpolation
This commit is contained in:
parent
44945b786d
commit
e8edb773ba
@ -179,7 +179,7 @@ in
|
||||
|
||||
```nix
|
||||
let
|
||||
a = 1;
|
||||
a = "1";
|
||||
in
|
||||
"the value of a is ${a}" # 结果是 "the value of a is 1"
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user