aboutsummaryrefslogtreecommitdiff
path: root/examples/commands
diff options
context:
space:
mode:
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 70a2303b..26b82790 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:trim($/{1 nl}/, trim_left=no, trim_right=yes)
+ text = text:without_suffix(\n)
return text
else: return none
return none