[nix/en] update to string interpolation (#5240)
Some checks failed
Trigger site build / deploy (push) Has been cancelled
CI / lint (push) Has been cancelled

This commit is contained in:
Tyler Miller 2025-01-21 07:14:55 -05:00 committed by GitHub
parent fd4522df50
commit c3c2f20a80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
nix.md
View File

@ -86,7 +86,7 @@ with builtins; [
("ab" + "cd") # String concatenation ("ab" + "cd") # String concatenation
#=> "abcd" #=> "abcd"
# Antiquotation lets you embed values into strings. # String interpolation (formerly known as "antiquotation") lets you embed values into strings.
("Your home directory is ${getEnv "HOME"}") ("Your home directory is ${getEnv "HOME"}")
#=> "Your home directory is /home/alice" #=> "Your home directory is /home/alice"