docs: fix emphasized lines

This commit is contained in:
Johel Ernesto Guerrero Peña
2020-08-18 02:56:01 -04:00
committed by Mateusz Pusz
parent 746ac178e4
commit 12c0177633

View File

@ -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: The result will always be a quantity point of the same dimension:
.. code-block:: .. code-block::
:emphasize-lines: 3-4 :emphasize-lines: 3-5
Length auto dist1 = 2q_m; Length auto dist1 = 2q_m;
Length auto dist2 = 1q_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: You can't subtract a quantity from a quantity point:
.. code-block:: .. code-block::
:emphasize-lines: 3
Length auto dist1 = 2q_m; Length auto dist1 = 2q_m;
Length auto dist2 = 1q_m; Length auto dist2 = 1q_m;
auto res1 = dist1 - quantity_point{dist2}; // ERROR 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. We can also substract two quantity points.
The result is a relative quantity of the same dimension: The result is a relative quantity of the same dimension:
.. code-block::
:emphasize-lines: 3
Length auto dist1 = 2q_m; Length auto dist1 = 2q_m;
Length auto dist2 = 1q_m; Length auto dist2 = 1q_m;
Length auto res1 = quantity_point{dist1} - quantity_point{dist2}; Length auto res1 = quantity_point{dist1} - quantity_point{dist2};