Skip to content

Commit 5668cf2

Browse files
committed
docs: fix example
1 parent 204f052 commit 5668cf2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,13 @@ the type you wish to use as the second argument to `Quantity`:
457457
```julia
458458
julia> using DynamicQuantities
459459

460-
julia> q8 = [Quantity{Float64,FRInt8}(randn(), length=rand(-2:2)) for i in 1:1000];
460+
julia> R8 = Dimensions{FRInt8};
461461

462-
julia> q32 = [Quantity{Float64,FRInt32}(randn(), length=rand(-2:2)) for i in 1:1000];
462+
julia> R32 = Dimensions{FRInt32};
463+
464+
julia> q8 = [Quantity{Float64,R8}(randn(), length=rand(-2:2)) for i in 1:1000];
465+
466+
julia> q32 = [Quantity{Float64,R32}(randn(), length=rand(-2:2)) for i in 1:1000];
463467

464468
julia> f(x) = @. x ^ 2 * 0.5;
465469

0 commit comments

Comments
 (0)