doc/tutorial/basics: include commands to run
To give the user a clue on how to get the output.
Change-Id: I2fb92d08599c95b7b1cbd70e8f41d2760e359c14
Reviewed-on: https://cue-review.googlesource.com/c/1580
Reviewed-by: Marcel van Lohuizen <mpvl@google.com>
diff --git a/doc/tutorial/basics/stringraw.md b/doc/tutorial/basics/stringraw.md
index 6f5b73a..8ea44fa 100644
--- a/doc/tutorial/basics/stringraw.md
+++ b/doc/tutorial/basics/stringraw.md
@@ -13,6 +13,7 @@
Quotes do not have to be escaped in such strings.
<!-- CUE editor -->
+_stringraw.cue:_
```
msg1: #"The sequence "\U0001F604" renders as \#U0001F604."#
@@ -21,11 +22,13 @@
#"\d{3}"#
- This construct works for bytes, strings and their multi-line variants.
+ This construct works for bytes, strings and their
+ multi-line variants.
"""##
```
<!-- JSON result -->
+`$ cue eval stringraw.cue`
```json
{
msg1: "The sequence \"\\U0001F604\" renders as 😄."
@@ -34,7 +37,8 @@
#\"\\d{3}\"#
- This construct works for bytes, strings and their multi-line variants.
+ This construct works for bytes, strings and their
+ multi-line variants.
"""
}
```