Skip to content

Commit f4c2f9a

Browse files
committed
Fix docstring
1 parent aebad13 commit f4c2f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Physical quantity with value `value` of type `T` and dimensions `dimensions`.
5151
The `valid` field is used to indicate whether the quantity is valid or not
5252
(e.g., due to dimensional error). For example, the velocity of an object
5353
with mass 1 kg and velocity 2 m/s is `Quantity(2, mass=1, length=1, time=-1)`.
54-
You should access these fields with `value(q)`, `dimensions(q)`, and `valid(q)`.
54+
You should access these fields with `ustrip(q)`, `dimensions(q)`, and `valid(q)`.
5555
You can access specific dimensions with `ulength(q)`, `umass(q)`, `utime(q)`,
5656
`ucurrent(q)`, `utemperature(q)`, `uluminosity(q)`, and `uamount(q)`.
5757

0 commit comments

Comments
 (0)