From 1e78e6b036144d70039b536de747dc1e83355997 Mon Sep 17 00:00:00 2001 From: Jeff Fessler Date: Fri, 4 Jun 2021 11:46:20 -0400 Subject: [PATCH] fix example `isa(1m, Length)` (#454) `isa(1m, Length)` did not work after `using Unitful` but the corrected version works. --- docs/src/types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/types.md b/docs/src/types.md index 1be64886..c3d05f20 100644 --- a/docs/src/types.md +++ b/docs/src/types.md @@ -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