Skip to content

Commit 7baf788

Browse files
docs: import DynamicQuantities in doc example requiring it
1 parent 5d190f6 commit 7baf788

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/src/basics/Variable_metadata.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ state_priority(important_dof)
201201
Units for variables can be designated using symbolic metadata. For more information, please see the [model validation and units](@ref units) section of the docs. Note that `getunit` is not equivalent to `get_unit` - the former is a metadata getter for individual variables (and is provided so the same interface function for `unit` exists like other metadata), while the latter is used to handle more general symbolic expressions.
202202

203203
```@example metadata
204+
using DynamicQuantities
204205
@variables speed [unit = u"m/s"]
205206
hasunit(speed)
206207
```

0 commit comments

Comments
 (0)