aboutsummaryrefslogtreecommitdiff
path: root/lib/net/html/example_node_iterator_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/html/example_node_iterator_test.go')
-rw-r--r--lib/net/html/example_node_iterator_test.go52
1 files changed, 27 insertions, 25 deletions
diff --git a/lib/net/html/example_node_iterator_test.go b/lib/net/html/example_node_iterator_test.go
index 18eb9832..94ece050 100644
--- a/lib/net/html/example_node_iterator_test.go
+++ b/lib/net/html/example_node_iterator_test.go
@@ -34,22 +34,23 @@ func ExampleParse() {
fmt.Printf("\t%s\n", node.Data)
}
}
- //Output:
- //html
- //head
- //body
- //ul
- //li
- //b
- // item
- //b
- //span
- // one
- //span
- //li
- //ul
- //body
- //html
+
+ // Output:
+ // html
+ // head
+ // body
+ // ul
+ // li
+ // b
+ // item
+ // b
+ // span
+ // one
+ // span
+ // li
+ // ul
+ // body
+ // html
}
func ExampleNodeIterator_SetNext() {
@@ -82,13 +83,14 @@ func ExampleNodeIterator_SetNext() {
fmt.Printf("\t%s\n", node.Data)
}
}
- //Output:
- //html
- //head
- //body
- //h2
- // Jump here
- //h2
- //body
- //html
+
+ // Output:
+ // html
+ // head
+ // body
+ // h2
+ // Jump here
+ // h2
+ // body
+ // html
}