summaryrefslogtreecommitdiffhomepage
path: root/haxe.html.markdown
diff options
context:
space:
mode:
authorJustin Donaldson <jdonaldson@gmail.com>2013-08-19 13:56:01 -0700
committerJustin Donaldson <jdonaldson@gmail.com>2013-08-19 13:56:01 -0700
commit3b278c3e59926a117dc00c50585045c7e932397a (patch)
treec8640b2442cd2cad2559506da8565b7e2030dd53 /haxe.html.markdown
parent1a9107e43d25bcf06cefc701dbf6784d33898b1a (diff)
fix getter/setter styles
Diffstat (limited to 'haxe.html.markdown')
-rw-r--r--haxe.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/haxe.html.markdown b/haxe.html.markdown
index 0b3c614d..8dd8ba81 100644
--- a/haxe.html.markdown
+++ b/haxe.html.markdown
@@ -391,7 +391,7 @@ class FooClass extends BaseFooClass implements BaseFooInterface{
public var public_any:Int; // public variables are accessible anywhere
public var public_read (default,null): Int; // use this style to only enable public read
public var public_write (null, default): Int; // or public write
- public var getter_setter (getValue, setValue): Int; // use this style to enable getters/setters
+ public var property (get, set): Int; // use this style to enable getters/setters
// private variables are not available outside the class.
// see @:allow for ways around this.
@@ -407,12 +407,12 @@ class FooClass extends BaseFooClass implements BaseFooInterface{
}
// getter for _private
- function getValue() : Int {
+ function get_property() : Int {
return _private;
}
// setter for _private
- function setValue(val:Int) : Void{
+ function set_property(val:Int) : Void{
_private = val;
}