From cbd4d86acd478e4e7973aa30115f4e2fce867483 Mon Sep 17 00:00:00 2001 From: Audun Wilhelmsen Date: Sun, 4 May 2014 12:23:13 -0700 Subject: [PATCH] Formatting changes to the cheat-sheet --- Nimrod-for-C-programmers.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Nimrod-for-C-programmers.md b/Nimrod-for-C-programmers.md index 668ebf0..4459972 100644 --- a/Nimrod-for-C-programmers.md +++ b/Nimrod-for-C-programmers.md @@ -153,7 +153,7 @@ char* s = "Hello World."; char s0 = s[0]; // 'H' char *t = s; // Pointer to s s[11] = '!'; -// s and t are both "Hello World." +// s and t both "Hello World!" @@ -162,7 +162,8 @@ var s: string = "Hello World." var s0: char = s[0] # 'H' var t = s # Copy of s s[11] = '!' -# s is "Hello World!", t is "Hello World." +# s is "Hello World!" +# t is "Hello World." Strings and char. Strings are pass-by-value (copied on assignment) and strictly bounds-checked on access.