From 720e7a26bf26d6fee4def4cc71704782d0208c66 Mon Sep 17 00:00:00 2001 From: Audun Wilhelmsen Date: Sun, 4 May 2014 12:25:38 -0700 Subject: [PATCH] Formatting changes to the cheat-sheet --- Nimrod-for-C-programmers.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Nimrod-for-C-programmers.md b/Nimrod-for-C-programmers.md index 4459972..7981981 100644 --- a/Nimrod-for-C-programmers.md +++ b/Nimrod-for-C-programmers.md @@ -174,13 +174,15 @@ s[11] = '!'
 char a = '\n';
-printf("byte %d\nA%cB\n", a, a);
+printf("byte %d\nA%cB\n", 
+        a, a);
 
 let a = '\L'
-echo "byte ", $int(a), "\nA" & $a & "B"
+echo "byte ", $int(a), 
+     "\nA" & $a & "B"
 
Newlines and chars. In nimrod you can't use ``\n`` as a character literal, because on the Windows platform it expands to CR+LR. So you need to specify which char to use.