From 37ba52300127347cf8b5a940bb245d52adfaf9d1 Mon Sep 17 00:00:00 2001 From: Bruno Bachmann Date: Mon, 13 May 2024 14:19:44 -0700 Subject: [PATCH] Escape special characters in example code --- ui/frontend/reducers/code.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/frontend/reducers/code.ts b/ui/frontend/reducers/code.ts index b955168..51dff91 100644 --- a/ui/frontend/reducers/code.ts +++ b/ui/frontend/reducers/code.ts @@ -7,7 +7,7 @@ const initialState: string = `use {puts}: "std/libc/io.bl" use {exit}: "std/libc/proc.bl" fn main() { - puts("Hello, world!\n\0") + puts("Hello, world!\\n\\0") exit(0) }`;