Skip to content

Commit 8707dd2

Browse files
committed
Update example in StableNode documentation
Example updated to align with implementation/unit test
1 parent 8aff2ad commit 8707dd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/base.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ trees with [`NodeTypeUnknown`](@ref) can implement methods to be converted to ty
229229
```julia
230230
StableNode{T}(x::T, ch)
231231
StableNode(x, ch=())
232-
StableNode(𝒻, T, node)
232+
StableNode{T}(𝒻, node)
233233
```
234234
235235
## Arguments
@@ -244,7 +244,7 @@ StableNode(𝒻, T, node)
244244
```julia
245245
t = [1, [2,3]]
246246
247-
node = StableNode(Union{Int,Nothing}, t) do n
247+
node = StableNode{Union{Int,Nothing}}(t) do n
248248
n isa Integer ? convert(Int, n) : nothing
249249
end
250250
```

0 commit comments

Comments
 (0)