aboutsummaryrefslogtreecommitdiff
path: root/docs/c-interoperability.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-31 18:03:05 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-31 18:03:05 -0400
commita0ac652cd1eebdc42425b34f1685f8cb20cb4eea (patch)
treeb41c99f8f0fa62eb03d1f5df44d2c501cd5f2976 /docs/c-interoperability.md
parenta571ccffd795a595e990a3405dcf977aafc33c6c (diff)
Simplify quotes by limiting to `,',"
Diffstat (limited to 'docs/c-interoperability.md')
-rw-r--r--docs/c-interoperability.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/c-interoperability.md b/docs/c-interoperability.md
index 3c0906ee..ae959220 100644
--- a/docs/c-interoperability.md
+++ b/docs/c-interoperability.md
@@ -23,12 +23,12 @@ without evaluating to anything:
```tomo
# Inline C block:
-C_code {
+C_code `
printf("This is just a block that is executed without a return value\n");
-}
+`
# Inline C expression (you must specify a type)
-val := C_code : Int32 (int x = 1; x + 1)
+val := C_code : Int32 `int x = 1; x + 1`
```
Inline C expressions must specify a type and they can be [compound statement