aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkickx <ghani.rafif.2112@gmail.com>2022-05-12 16:15:58 +0700
committerGitHub <noreply@github.com>2022-05-12 17:15:58 +0800
commitbc1162bc489477c20ac9e51d3d48ab438c14b45d (patch)
tree82c9b5a88fe99960e1403fbccaff693bc01006c6
parent66104b5357d3648876b867abb6a4caa069627816 (diff)
downloadyuescript-bc1162bc489477c20ac9e51d3d48ab438c14b45d.tar.gz
yuescript-bc1162bc489477c20ac9e51d3d48ab438c14b45d.tar.bz2
yuescript-bc1162bc489477c20ac9e51d3d48ab438c14b45d.zip
doc: add note for `#{}` syntax (#95)
-rwxr-xr-xdoc/docs/doc/README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/docs/doc/README.md b/doc/docs/doc/README.md
index abff593..c772765 100755
--- a/doc/docs/doc/README.md
+++ b/doc/docs/doc/README.md
@@ -1237,6 +1237,7 @@ some_string = "Here is a string
1237 that has a line break in it." 1237 that has a line break in it."
1238 1238
1239-- You can mix expressions into string literals using #{} syntax. 1239-- You can mix expressions into string literals using #{} syntax.
1240-- String interpolation is only available in double quoted strings.
1240print "I am #{math.random! * 100}% sure." 1241print "I am #{math.random! * 100}% sure."
1241``` 1242```
1242<YueDisplay> 1243<YueDisplay>
@@ -1245,6 +1246,7 @@ some_string = "Here is a string
1245 that has a line break in it." 1246 that has a line break in it."
1246 1247
1247-- You can mix expressions into string literals using #{} syntax. 1248-- You can mix expressions into string literals using #{} syntax.
1249-- String interpolation is only available in double quoted strings.
1248print "I am #{math.random! * 100}% sure." 1250print "I am #{math.random! * 100}% sure."
1249</pre> 1251</pre>
1250</YueDisplay> 1252</YueDisplay>