Skip to content

Commit

Permalink
Fix convfact documentation (#571)
Browse files Browse the repository at this point in the history
* Fix `convfact` documentation

* Update src/conversion.jl

Co-authored-by: Sebastian Stock <[email protected]>

* Add comma after e.g.

Co-authored-by: Sebastian Stock <[email protected]>
  • Loading branch information
JeffFessler and sostock authored Oct 30, 2022
1 parent 4edb83a commit ebad449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conversion.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
convfact(s::Units, t::Units)
Find the conversion factor from unit `t` to unit `s`, e.g. `convfact(m,cm) = 0.01`.
Find the conversion factor from unit `t` to unit `s`, e.g., `convfact(m,cm) == 1//100`.
"""
@generated function convfact(s::Units, t::Units)
sunits = s.parameters[1]
Expand Down

0 comments on commit ebad449

Please sign in to comment.