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.