Formatting changes to the cheat-sheet
This commit is contained in:
parent
cbd4d86acd
commit
720e7a26bf
|
@ -174,13 +174,15 @@ s[11] = '!'
|
||||||
<td>
|
<td>
|
||||||
<pre>
|
<pre>
|
||||||
char a = '\n';
|
char a = '\n';
|
||||||
printf("byte %d\nA%cB\n", a, a);
|
printf("byte %d\nA%cB\n",
|
||||||
|
a, a);
|
||||||
</pre>
|
</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre>
|
<pre>
|
||||||
let a = '\L'
|
let a = '\L'
|
||||||
echo "byte ", $int(a), "\nA" & $a & "B"
|
echo "byte ", $int(a),
|
||||||
|
"\nA" & $a & "B"
|
||||||
</pre>
|
</pre>
|
||||||
</td>
|
</td>
|
||||||
<td><b>Newlines and chars</b>. 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.</i>
|
<td><b>Newlines and chars</b>. 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.</i>
|
||||||
|
|
Loading…
Reference in New Issue