diff --git a/docs/api_reference/src/quantities.tex b/docs/api_reference/src/quantities.tex index a55be5c72..bd4f9b353 100644 --- a/docs/api_reference/src/quantities.tex +++ b/docs/api_reference/src/quantities.tex @@ -1590,17 +1590,20 @@ template struct @\libglobal{magnitude}@ { - friend consteval @\libconcept{Magnitude}@ auto operator*(magnitude m1, @\libconcept{Magnitude}@ auto m2); + friend consteval @\libconcept{Magnitude}@ auto operator*(magnitude lhs, @\libconcept{Magnitude}@ auto rhs); - friend consteval auto operator/(magnitude l, @\libconcept{Magnitude}@ auto r) { return l * @\exposidnc{pow}@<-1>(r); } + friend consteval auto operator/(magnitude lhs, @\libconcept{Magnitude}@ auto rhs) + { + return lhs * @\exposidnc{pow}@<-1>(rhs); + } template friend consteval auto @\exposidnc{pow}@(magnitude); - template<@\libconcept{Magnitude}@ M2> - friend consteval bool operator==(magnitude, M2) + template<@\libconcept{Magnitude}@ Rhs> + friend consteval bool operator==(magnitude, Rhs) { - return ^magnitude == ^M2; + return ^magnitude == ^Rhs; } friend consteval bool @\exposidnc{is-positive-integral-power}@(magnitude); @@ -1614,7 +1617,7 @@ represents the product of its template arguments. \begin{itemdecl} -friend consteval @\libconcept{Magnitude}@ auto operator*(magnitude m1, @\libconcept{Magnitude}@ auto m2); +friend consteval @\libconcept{Magnitude}@ auto operator*(magnitude lhs, @\libconcept{Magnitude}@ auto rhs); \end{itemdecl} \begin{itemdescr} @@ -1624,7 +1627,7 @@ \item If the type of a parameter is \tcode{magnitude<>}, returns the other parameter. \item -Otherwise, returns an unspecified model of \libconcept{Magnitude} equal to $\tcode{m1} \times \tcode{m2}$. +Otherwise, returns an unspecified model of \libconcept{Magnitude} equal to $\tcode{lhs} \times \tcode{rhs}$. \end{itemize} \end{itemdescr}