commit 9771eec6b1452b89006b1fa3d3ac729e03ff0296
parent fb1475c08abb8f8b19c586df166266bc69f9288b
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 17 Jul 2022 15:07:49 +0200
strings::template: minor docs fixes
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/strings/template/README b/strings/template/README
@@ -6,10 +6,10 @@ The template format is a string with variable substituted using "$". Variable
names must be alphanumeric ASCII characters (i.e. for which [[ascii::isalnum]]
returns true). A literal "$" may be printed by using it twice: "$$".
- const src = "Hello, $user! Your balance is $$$balance\n";
+ const src = "Hello, $user! Your balance is $$$balance.\n";
const template = template::compile(src)!;
defer template::finish(&template);
template::execute(&template, os::stdout,
("user", "ddevault"),
- ("balance", "1000"),
+ ("balance", 1000),
)!; // "Hello, ddevault! Your balance is $1000.