Skip to content

Commit d0d225c

Browse files
committed
[syserr.compare] Format code blocks more uniformly; remove surprising paragraph breaks from post-conditions.
1 parent 89842a3 commit d0d225c

File tree

1 file changed

+26
-16
lines changed

1 file changed

+26
-16
lines changed

source/diagnostics.tex

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@
15671567
\returns
15681568
\begin{codeblock}
15691569
lhs.category() < rhs.category() ||
1570-
(lhs.category() == rhs.category() && lhs.value() < rhs.value());
1570+
(lhs.category() == rhs.category() && lhs.value() < rhs.value())
15711571
\end{codeblock}
15721572
\end{itemdescr}
15731573

@@ -1578,8 +1578,11 @@
15781578

15791579
\begin{itemdescr}
15801580
\pnum
1581-
\returns \tcode{lhs.category() < rhs.category() || lhs.category() == rhs.category() \&\&\\
1582-
lhs.value() < rhs.value()}.
1581+
\returns
1582+
\begin{codeblock}
1583+
lhs.category() < rhs.category() ||
1584+
(lhs.category() == rhs.category() && lhs.value() < rhs.value())
1585+
\end{codeblock}
15831586
\end{itemdescr}
15841587

15851588
\indexlibrarymember{operator==}{error_code}%
@@ -1589,7 +1592,10 @@
15891592

15901593
\begin{itemdescr}
15911594
\pnum
1592-
\returns \tcode{lhs.category() == rhs.category() \&\& lhs.value() == rhs.value()}.
1595+
\returns
1596+
\begin{codeblock}
1597+
lhs.category() == rhs.category() && lhs.value() == rhs.value()
1598+
\end{codeblock}
15931599
\end{itemdescr}
15941600

15951601
\indexlibrarymember{operator==}{error_condition}%
@@ -1600,8 +1606,10 @@
16001606

16011607
\begin{itemdescr}
16021608
\pnum
1603-
\returns \tcode{lhs.category().equivalent(lhs.value(), rhs) || rhs.category().equivalent(lhs,
1604-
rhs.value())}.
1609+
\returns
1610+
\begin{codeblock}
1611+
lhs.category().equivalent(lhs.value(), rhs) || rhs.category().equivalent(lhs, rhs.value())
1612+
\end{codeblock}
16051613
\end{itemdescr}
16061614

16071615
\indexlibrarymember{operator==}{error_condition}%
@@ -1612,7 +1620,10 @@
16121620

16131621
\begin{itemdescr}
16141622
\pnum
1615-
\returns \tcode{rhs.category().equivalent(rhs.value(), lhs) || lhs.category().equivalent(rhs, lhs.value())}.
1623+
\returns
1624+
\begin{codeblock}
1625+
rhs.category().equivalent(rhs.value(), lhs) || lhs.category().equivalent(rhs, lhs.value())
1626+
\end{codeblock}
16161627
\end{itemdescr}
16171628

16181629
\indexlibrarymember{operator==}{error_condition}%
@@ -1622,7 +1633,10 @@
16221633

16231634
\begin{itemdescr}
16241635
\pnum
1625-
\returns \tcode{lhs.category() == rhs.category() \&\& lhs.value() == rhs.value()}.
1636+
\returns
1637+
\begin{codeblock}
1638+
lhs.category() == rhs.category() && lhs.value() == rhs.value()
1639+
\end{codeblock}
16261640
\end{itemdescr}
16271641

16281642
\indexlibrarymember{operator"!=}{error_code}%
@@ -1696,8 +1710,7 @@
16961710
\effects Constructs an object of class \tcode{system_error}.
16971711

16981712
\pnum
1699-
\postconditions \tcode{code() == ec}.
1700-
1713+
\postconditions \tcode{code() == ec} and
17011714
\tcode{string(what()).find(what_arg) != string::npos}.
17021715
\end{itemdescr}
17031716

@@ -1711,8 +1724,7 @@
17111724
\effects Constructs an object of class \tcode{system_error}.
17121725

17131726
\pnum
1714-
\postconditions \tcode{code() == ec}.
1715-
1727+
\postconditions \tcode{code() == ec} and
17161728
\tcode{string(what()).find(what_arg) != string::npos}.
17171729
\end{itemdescr}
17181730

@@ -1739,8 +1751,7 @@
17391751
\effects Constructs an object of class \tcode{system_error}.
17401752

17411753
\pnum
1742-
\postconditions \tcode{code() == error_code(ev, ecat)}.
1743-
1754+
\postconditions \raggedright \tcode{code() == error_code(ev, ecat)} and\linebreak
17441755
\tcode{string(what()).find(what_arg) != string::npos}.
17451756
\end{itemdescr}
17461757

@@ -1754,8 +1765,7 @@
17541765
\effects Constructs an object of class \tcode{system_error}.
17551766

17561767
\pnum
1757-
\postconditions \tcode{code() == error_code(ev, ecat)}.
1758-
1768+
\postconditions \raggedright \tcode{code() == error_code(ev, ecat)} and\linebreak
17591769
\tcode{string(what()).find(what_arg) != string::npos}.
17601770
\end{itemdescr}
17611771

0 commit comments

Comments
 (0)