refactor(example): hello_units example changed to better reflect the code in README

This commit is contained in:
Mateusz Pusz
2023-06-16 10:26:34 +03:00
parent a99bac83a1
commit 8c54bbdc9a

View File

@ -29,7 +29,7 @@
using namespace mp_units;
constexpr QuantityOf<isq::speed> auto avg_speed(QuantityOf<isq::distance> auto d, QuantityOf<isq::duration> auto t)
constexpr QuantityOf<isq::speed> auto avg_speed(QuantityOf<isq::length> auto d, QuantityOf<isq::time> auto t)
{
return d / t;
}