Skip to content

Commit

Permalink
fix example isa(1m, Length) (#454)
Browse files Browse the repository at this point in the history
`isa(1m, Length)` did not work after `using Unitful` but the corrected version works.
  • Loading branch information
JeffFessler authored Jun 4, 2021
1 parent 9b77235 commit 1e78e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Finally, we define physical quantity types as [`Quantity{T<:Number, D, U}`](@ref
quantity, staged functions can be used to offload as much of the unit
computation to compile-time as is possible. By also having the dimensions
explicitly in the type signature, dispatch can be done on dimensions:
`isa(1m, Length) == true`. This works because `Length` is a type alias for
`isa(1u"m", Unitful.Length) == true`. This works because `Length` is a type alias for
some subset of `Unitful.Quantity` subtypes.

## API
Expand Down

0 comments on commit 1e78e6b

Please sign in to comment.