aboutsummaryrefslogtreecommitdiff
path: root/examples/commands
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 22:26:12 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 22:26:12 -0400
commit3406515a44b13d0c290c28ac42bd364ce27560c7 (patch)
tree38000658e651ad19b9c8c2590df8fd6bb6faa4d7 /examples/commands
parentd8afa73368cdff38125fa1f7d17ad5ce54c84def (diff)
Make string escapes more normal: "\n" for newline, etc. Backticks can be
used to put in literal code without escape sequences.
Diffstat (limited to 'examples/commands')
-rw-r--r--examples/commands/commands.tm2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/commands/commands.tm b/examples/commands/commands.tm
index ace7deb5..d72398b9 100644
--- a/examples/commands/commands.tm
+++ b/examples/commands/commands.tm
@@ -28,7 +28,7 @@ struct ProgramResult(stdout:[Byte], stderr:[Byte], exit_type:ExitType)
if status == 0
if text := Text.from_bytes(r.stdout)
if trim_newline
- text = text.without_suffix(\n)
+ text = text.without_suffix("\n")
return text
else return none
return none