Skip to content

Commit 1bdbe71

Browse files
authored
Merge pull request #1778 from lamorton/patch-1
Update Validation.md
2 parents 032f8fc + 2f751fa commit 1bdbe71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/basics/Validation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ w(t), [unit = "Hz"]
2020
end)
2121

2222
# Simultaneously set default value (use plain numbers, not quantities)
23-
@variable x=10 [unit = u"m"]
23+
@variables x=10 [unit = u"m"]
2424

2525
# Symbolic array: unit applies to all elements
26-
@variable x[1:3] [unit = u"m"]
26+
@variables x[1:3] [unit = u"m"]
2727
```
2828

2929
Do not use `quantities` such as `1u"s"`, `1/u"s"` or `u"1/s"` as these will result in errors; instead use `u"s"`, `u"s^-1"`, or `u"s"^-1`.

0 commit comments

Comments
 (0)