Skip to content

Commit 7cd3463

Browse files
authored
Tiny typos/consistency fix in docs (#939)
* Update ContextualVariables.md * Spaces in @variables
1 parent 16ee995 commit 7cd3463

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/src/basics/ContextualVariables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ the `@variable` which is defined by
77
[Symbolics.jl](https://github.com/JuliaSymbolics/Symbolics.jl). For example:
88

99
```julia
10-
@variabes x y(x)
10+
@variables x y(x)
1111
```
1212

1313
This is used for the "normal" variable of a given system, like the states of a

docs/src/tutorials/ode_modeling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ But if you want to just see some code and run, here's an example:
1313
```julia
1414
using ModelingToolkit
1515

16-
@variables t, x(t) RHS(t) # independent and dependent variables
16+
@variables t x(t) RHS(t) # independent and dependent variables
1717
@parameters τ # parameters
1818
D = Differential(t) # define an operator for the differentiation w.r.t. time
1919

@@ -51,7 +51,7 @@ first set the forcing function to a constant value.
5151
```julia
5252
using ModelingToolkit
5353

54-
@variables t, x(t) # independent and dependent variables
54+
@variables t x(t) # independent and dependent variables
5555
@parameters τ # parameters
5656
D = Differential(t) # define an operator for the differentiation w.r.t. time
5757

0 commit comments

Comments
 (0)