style: formatting fixed to make pre-commit happy

This commit is contained in:
Mateusz Pusz
2023-10-06 13:39:51 -06:00
parent 0d66089853
commit cb36e39c2a
2 changed files with 2 additions and 5 deletions

View File

@@ -527,10 +527,7 @@ template<QuantitySpec Lhs, detail::QuantityKindSpec Rhs>
return is_same_v<Lhs, std::remove_const_t<decltype(remove_kind(rhs))>>;
}
[[nodiscard]] consteval QuantitySpec auto inverse(QuantitySpec auto q)
{
return dimensionless / q;
}
[[nodiscard]] consteval QuantitySpec auto inverse(QuantitySpec auto q) { return dimensionless / q; }
/**

View File

@@ -80,6 +80,6 @@ QUANTITY_SPEC(attenuation, inverse(distance));
inline constexpr auto extinction = attenuation;
QUANTITY_SPEC(phase_coefficient, phase_angle / path_length);
QUANTITY_SPEC(propagation_coefficient, inverse(length)); // γ = α + iβ where α denotes attenuation
// and β the phase coefficient of a plane wave
// and β the phase coefficient of a plane wave
} // namespace mp_units::isq