diff --git a/docs/framework/dimensions.rst b/docs/framework/dimensions.rst index 35354605..8d17a720 100644 --- a/docs/framework/dimensions.rst +++ b/docs/framework/dimensions.rst @@ -67,7 +67,7 @@ but can be added to or subtracted from quantities. The result will always be a quantity point of the same dimension: .. code-block:: - :emphasize-lines: 3-4 + :emphasize-lines: 3-5 Length auto dist1 = 2q_m; Length auto dist2 = 1q_m; @@ -80,6 +80,7 @@ The result will always be a quantity point of the same dimension: You can't subtract a quantity from a quantity point: .. code-block:: + :emphasize-lines: 3 Length auto dist1 = 2q_m; Length auto dist2 = 1q_m; auto res1 = dist1 - quantity_point{dist2}; // ERROR @@ -87,6 +88,8 @@ The result will always be a quantity point of the same dimension: We can also substract two quantity points. The result is a relative quantity of the same dimension: +.. code-block:: + :emphasize-lines: 3 Length auto dist1 = 2q_m; Length auto dist2 = 1q_m; Length auto res1 = quantity_point{dist1} - quantity_point{dist2};