Skip to content

Commit

Permalink
Fix typos like Unitful.EnergyUnit in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Oct 2, 2020
1 parent 2a8d554 commit 3282324
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ julia> promote(2.0u"J", 1.0u"kg*m^2/s^2")
(2.0 J, 1.0 J)
```

If you're wondering where `Unitful.EnergyUnit` comes from, it is defined in
If you're wondering where `Unitful.EnergyUnits` comes from, it is defined in
`src/pkgdefaults.jl` by the [`@derived_dimension`](@ref) macro. Similarly,
the calls to the [`@dimension`](@ref) macro define `Unitful.LengthUnit`,
`Unitful.MassUnit`, etc. None of these are exported.
the calls to the [`@dimension`](@ref) macro define `Unitful.LengthUnits`,
`Unitful.MassUnits`, etc. None of these are exported.

Existing users of Unitful may want to call [`Unitful.promote_to_derived`](@ref)
after Unitful loads to give similar behavior to Unitful 0.0.4 and below. It is
Expand Down

0 comments on commit 3282324

Please sign in to comment.