mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-13 12:45:58 +00:00
[haxe/en] Adding colon after comments
...as per @vendethiel's advice
This commit is contained in:
parent
982b984684
commit
5816b59be6
@ -495,9 +495,9 @@ class LearnHaxe3{
|
|||||||
// foo_instance.public_read = 4; // this will throw an error if uncommented:
|
// foo_instance.public_read = 4; // this will throw an error if uncommented:
|
||||||
// trace(foo_instance.public_write); // as will this.
|
// trace(foo_instance.public_write); // as will this.
|
||||||
|
|
||||||
// calls the toString method
|
// calls the toString method:
|
||||||
trace(foo_instance + " is the value for foo_instance");
|
trace(foo_instance + " is the value for foo_instance");
|
||||||
// same thing
|
// same thing:
|
||||||
trace(foo_instance.toString() + " is the value for foo_instance.toString()");
|
trace(foo_instance.toString() + " is the value for foo_instance.toString()");
|
||||||
|
|
||||||
|
|
||||||
@ -536,7 +536,7 @@ class FooClass extends BarClass implements BarInterface{
|
|||||||
|
|
||||||
// a public constructor
|
// a public constructor
|
||||||
public function new(arg:Int){
|
public function new(arg:Int){
|
||||||
// call the constructor of the parent object, since we extended BarClass
|
// call the constructor of the parent object, since we extended BarClass:
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.public_any = 0;
|
this.public_any = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user