Skip to content

Commit

Permalink
fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Feb 4, 2022
1 parent 54d96a9 commit 3d47bed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/node.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ with some child nodes and additional properties.
The most common type of `Node` is a DOM node. These can be constructed just by
specifying a symbol as the `instanceof` (they are promoted to an instance of
`WebIO.DOM` under the hood).
```jldoctest
julia> using WebIO
julia> Node(:div, Node(:p, "I am a paragraph!", class="important"))
(div
(p { class="important" }
Expand Down Expand Up @@ -60,6 +63,8 @@ type.
# Examples
```jldoctest
julia> using WebIO
julia> repr(WebIO.promote_instanceof(:div))
"WebIO.DOM(:html, :div)"
```
Expand Down

0 comments on commit 3d47bed

Please sign in to comment.