Skip to content

Commit

Permalink
Fix doctests on Julia ≥1.7 (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
sostock authored Sep 13, 2022
1 parent adf24e7 commit 9151c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ julia> [1.0u"m", 2.0u"cm"]
0.02 m
julia> [1.0u"m", 2.0]
2-element Vector{Quantity{Float64, D, U} where {D, U}}:
2-element Vector{Quantity{Float64}}:
1.0 m
2.0
```
Expand All @@ -166,7 +166,7 @@ julia> f([1.0u"m", 2.0u"cm"])
1.02 m
julia> f([1.0u"g", 2.0u"cm"])
ERROR: MethodError: no method matching f(::Vector{Quantity{Float64, D, U} where {D, U}})
ERROR: MethodError: no method matching f(::Vector{Quantity{Float64}})
[...]
```

Expand Down

0 comments on commit 9151c24

Please sign in to comment.