Skip to content

Commit

Permalink
Update Proxy.hx (HaxeFoundation#5401)
Browse files Browse the repository at this point in the history
fix code formatting
  • Loading branch information
markknol authored and Simn committed Jun 23, 2016
1 parent 8d2c3fc commit c55faa7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions std/haxe/xml/Proxy.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,17 @@ package haxe.xml;
It will only allow access to fields which corresponds to an "id" attribute
value in the XML file :
[
class MyXml extends haxe.xml.Proxy<"my.xml",MyStructure> {
```haxe
class MyXml extends haxe.xml.Proxy<"my.xml", MyStructure> {
}
...
var h = new haxe.ds.StringMap<MyStructure>();
// ... fill h with "my.xml" content
var m = new MyXml(h.get);
trace(m.myNode.structField);
// access to "myNode" is only possible
// if you have an id="myNode" attribute
// in your XML, and completion works as well
]
// Access to "myNode" is only possible if you have an id="myNode" attribute
// in your XML, and completion works as well.
```
**/
class Proxy<Const,T> {

Expand Down

0 comments on commit c55faa7

Please sign in to comment.