Browse Source

[std] fix formatting of the Fast.nodes code example (#7044)

[skip ci]
Jens Fischer 7 years ago
parent
commit
82fbd6052a
1 changed files with 6 additions and 4 deletions
  1. 6 4
      std/haxe/xml/Fast.hx

+ 6 - 4
std/haxe/xml/Fast.hx

@@ -132,15 +132,17 @@ abstract Fast(Xml) {
 	/**
 	/**
 		Access to the List of elements with the given name.
 		Access to the List of elements with the given name.
 		```haxe
 		```haxe
-		var fast = new haxe.xml.Fast(Xml.parse("<users>
+		var fast = new haxe.xml.Fast(Xml.parse("
+			<users>
 				<user name='John'/>
 				<user name='John'/>
 				<user name='Andy'/>
 				<user name='Andy'/>
 				<user name='Dan'/>
 				<user name='Dan'/>
-		</users>"));
+			</users>"
+		));
 
 
 		var users = fast.node.users;
 		var users = fast.node.users;
-		for(user in users.nodes.user) {
-				trace(user.att.name);
+		for (user in users.nodes.user) {
+			trace(user.att.name);
 		}
 		}
 		```
 		```
 	**/
 	**/