mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-09 16:26:53 +02:00
whitespace
This commit is contained in:
@@ -189,7 +189,7 @@ class LearnHaxe3 {
|
|||||||
trace(m.get('bar') + " is the value for m.get('bar')");
|
trace(m.get('bar') + " is the value for m.get('bar')");
|
||||||
trace(m['bar'] + " is the value for m['bar']");
|
trace(m['bar'] + " is the value for m['bar']");
|
||||||
|
|
||||||
var m2 = ['foo' => 4, 'baz' => 6]; // Alternative map syntax
|
var m2 = ['foo' => 4, 'baz' => 6]; // Alternative map syntax
|
||||||
trace(m2 + " is the value for m2");
|
trace(m2 + " is the value for m2");
|
||||||
|
|
||||||
// Remember, you can use type inference. The Haxe compiler will
|
// Remember, you can use type inference. The Haxe compiler will
|
||||||
@@ -286,7 +286,7 @@ class LearnHaxe3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// do-while loop
|
// do-while loop
|
||||||
var l = 0;
|
var l = 0;
|
||||||
do {
|
do {
|
||||||
trace("do statement always runs at least once");
|
trace("do statement always runs at least once");
|
||||||
} while (l > 0);
|
} while (l > 0);
|
||||||
|
Reference in New Issue
Block a user