Skip to content

Commit f259aff

Browse files
committed
fix readme example
1 parent a87831e commit f259aff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ node["key"]
102102
- `Node` is an immutable type. However, you can easily create a copy with one or more field values changed by using the `Node(::Node, children...; attrs...)` constructor where `children` are appended to the source node's children and `attrs` are appended to the node's attributes.
103103

104104
```julia
105-
node = XML.Element("tag", XML.Text("child"))
105+
node = XML.Element("tag", "child")
106106
# Node Element <tag> (1 child)
107107

108108
simple_value(node)

0 commit comments

Comments
 (0)