From 62100e5745cc68c691191015f5cdb654c95a653f Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 27 Jan 2024 22:53:56 +0100 Subject: [PATCH] style: whitespaces fixed to make pre-commit happy --- docs/getting_started/quick_start.md | 6 +++--- docs/index.md | 6 +++--- .../framework_basics/simple_and_typed_quantities.md | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/getting_started/quick_start.md b/docs/getting_started/quick_start.md index f062dc2d..2ea00bbe 100644 --- a/docs/getting_started/quick_start.md +++ b/docs/getting_started/quick_start.md @@ -157,7 +157,7 @@ This introduces an additional type-safety. using namespace mp_units; using namespace mp_units::si::unit_symbols; using namespace mp_units::usc::unit_symbols; - + quantity_point temp{20. * deg_C}; std::println("Temperature: {} ({})", temp.quantity_from_zero(), @@ -172,13 +172,13 @@ This introduces an additional type-safety. #include #include #include - + int main() { using namespace mp_units; using namespace mp_units::si::unit_symbols; using namespace mp_units::usc::unit_symbols; - + quantity_point temp{20. * deg_C}; std::println("Temperature: {} ({})", temp.quantity_from_zero(), diff --git a/docs/index.md b/docs/index.md index eb67a915..4f98b54b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -64,11 +64,11 @@ The library source code is hosted on [GitHub](https://github.com/mpusz/mp-units) #include #include #include - + using namespace mp_units; - + inline constexpr struct smoot : named_unit<"smoot", mag<67> * usc::inch> {} smoot; - + int main() { constexpr quantity dist = 364.4 * smoot; diff --git a/docs/users_guide/framework_basics/simple_and_typed_quantities.md b/docs/users_guide/framework_basics/simple_and_typed_quantities.md index 61aba286..864289eb 100644 --- a/docs/users_guide/framework_basics/simple_and_typed_quantities.md +++ b/docs/users_guide/framework_basics/simple_and_typed_quantities.md @@ -205,22 +205,22 @@ The previous example can be re-typed using typed quantities in the following way #include #include #include - + using namespace mp_units; using namespace mp_units::si::unit_symbols; - + constexpr quantity avg_speed(quantity dist, quantity time) { return dist / time; } - + int main() { const quantity distance = isq::distance(110 * km); const quantity duration = isq::time(2 * h); const quantity speed = avg_speed(distance, duration); - + std::println("A car driving {} in {} has an average speed of {:{%N:.4} %U} ({:{%N:.4} %U})", distance, duration, speed, speed.in(km / h)); }