Skip to content

Commit 77576df

Browse files
committed
Use direct degree symbol unit
Easier to parse without u_str macro
1 parent 6bfb0c3 commit 77576df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/src/dust_maps.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ Our dust maps also have native support for `Unitful.jl` and `Measurements.jl`.
3838
```jldoctest
3939
julia> using Measurements, Unitful
4040
41-
julia> l = 45u"°"; b=0u"°";
41+
julia> using Unitful: °
42+
43+
julia> l = 45°; b = 0°;
4244
4345
julia> dustmap = SFD98Map();
4446
4547
julia> dustmap(l, b)
4648
6.4290331211742355 mag
4749
48-
julia> l = l ± 0.1u"°"; b = b ± 0.3u"°";
50+
julia> l = l ± 0.; b = b ± 0.;
4951
5052
julia> dustmap(l, b)
5153
6.4 ± 5.7 mag

0 commit comments

Comments
 (0)