Skip to content

Commit 92f7798

Browse files
committed
fix macro-free symbolic docs, Expr(::Num) still errors
1 parent c46d993 commit 92f7798

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/tutorials/symbolic_functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,9 @@ the user's code. For these cases, ModelingToolkit.jl allows for fully
382382
macro-free usage. For example:
383383

384384
```julia
385-
x = Sym{Float64}(:x)()
386-
y = Sym{Float64}(:y)()
387-
x+y^2.0
385+
x = Sym{Float64}(:x)
386+
y = Sym{Float64}(:y)
387+
x+y^2.0 # isa Num
388388
```
389389

390390
Does what you'd expect. The reference documentation shows how to

0 commit comments

Comments
 (0)