Skip to content

Commit 7b704e1

Browse files
Eeliszygoloid
authored andcommitted
Capitalize examples where appropriate. (#1356)
1 parent 1e00bc3 commit 7b704e1

File tree

11 files changed

+28
-28
lines changed

11 files changed

+28
-28
lines changed

source/access.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@
600600
Such declarations give special access rights to the friends, but they
601601
do not make the nominated friends members of the befriending class.
602602
\begin{example}
603-
the following example illustrates the differences between
603+
The following example illustrates the differences between
604604
members and friends:
605605
\indextext{friend function!member function and}%
606606
\indextext{example!friend function}%

source/basic.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@
547547

548548
\pnum
549549
\begin{example}
550-
in
550+
In
551551

552552
\begin{codeblock}
553553
int j = 24;

source/classes.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@
12421242
Once the static data member has been defined, it exists even if
12431243
no objects of its class have been created.
12441244
\begin{example}
1245-
in the example above, \tcode{run_chain} and \tcode{running} exist even
1245+
In the example above, \tcode{run_chain} and \tcode{running} exist even
12461246
if no objects of class \tcode{process} are created by the program.
12471247
\end{example}
12481248
\end{note}

source/declarations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
548548
declaration~(\ref{class.name}) or enum declaration does.
549549
\begin{example}
550550
\indextext{example!\idxcode{typedef}}%
551-
after
551+
After
552552

553553
\begin{codeblock}
554554
typedef int MILES, *KLICKSP;
@@ -2628,7 +2628,7 @@
26282628
declarative region to refer only to the namespace to which it already
26292629
refers.
26302630
\begin{example}
2631-
the following declarations are well-formed:
2631+
The following declarations are well-formed:
26322632

26332633
\begin{codeblock}
26342634
namespace Company_with_very_long_name { @\commentellip@ }

source/declarators.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@
465465
determines the type
466466
\tcode{T}.
467467
\begin{example}
468-
in the declaration
468+
In the declaration
469469

470470
\begin{codeblock}
471471
int unsigned i;
@@ -547,7 +547,7 @@
547547

548548
\pnum
549549
\begin{example}
550-
the declarations
550+
The declarations
551551
\indextext{example!\idxcode{const}}%
552552
\indextext{example!constant pointer}%
553553
\begin{codeblock}
@@ -1185,7 +1185,7 @@
11851185
the result is the pointed-to $(n-1)$-dimensional array,
11861186
which itself is immediately converted into a pointer.
11871187
\begin{example}
1188-
consider
1188+
Consider
11891189

11901190
\begin{codeblock}
11911191
int x[3][5];
@@ -1381,7 +1381,7 @@
13811381
\begin{example}
13821382
\indextext{example!ellipsis}%
13831383
\indextext{example!variable parameter list}%
1384-
the declaration
1384+
The declaration
13851385

13861386
\begin{codeblock}
13871387
int printf(const char*, ...);
@@ -1502,7 +1502,7 @@
15021502
\pnum
15031503
\begin{example}
15041504
\indextext{example!function declaration}%
1505-
the declaration
1505+
The declaration
15061506

15071507
\begin{codeblock}
15081508
int fseek(FILE*, long, int);
@@ -1559,7 +1559,7 @@
15591559

15601560
\pnum
15611561
\begin{example}
1562-
the declaration
1562+
The declaration
15631563

15641564
\indextext{example!declaration}%
15651565
\begin{codeblock}
@@ -1696,7 +1696,7 @@
16961696
\pnum
16971697
\indextext{argument!example of default}%
16981698
\begin{example}
1699-
the declaration
1699+
The declaration
17001700

17011701
\begin{codeblock}
17021702
void point(int = 3, int = 4);
@@ -1806,7 +1806,7 @@
18061806
arguments in function templates and in member functions of
18071807
class templates are performed as described in~\ref{temp.inst}.
18081808
\begin{example}
1809-
in the following code,
1809+
In the following code,
18101810
\indextext{argument!example of default}%
18111811
\tcode{g}
18121812
will be called with the value
@@ -1911,7 +1911,7 @@
19111911
the \grammarterm{id-expression} of a class member access expression (\ref{expr.ref}) or
19121912
unless it is used to form a pointer to member (\ref{expr.unary.op}).
19131913
\begin{example}
1914-
the declaration of
1914+
The declaration of
19151915
\tcode{X::mem1()}
19161916
in the following example is ill-formed because no object is supplied for the
19171917
non-static member
@@ -2027,7 +2027,7 @@
20272027

20282028
\pnum
20292029
\begin{example}
2030-
a simple example of a complete function definition is
2030+
A simple example of a complete function definition is
20312031

20322032
\indextext{example!function definition}%
20332033
\begin{codeblock}

source/expressions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@
15571557
The initialization and destruction of each parameter occurs
15581558
within the context of the calling function.
15591559
\begin{example}
1560-
the access of the constructor, conversion functions or destructor is
1560+
The access of the constructor, conversion functions or destructor is
15611561
checked at the point of call in the calling function. If a constructor
15621562
or destructor for a function parameter throws an exception, the search
15631563
for a handler starts in the scope of the calling function; in
@@ -3123,7 +3123,7 @@
31233123
The \grammarterm{expression} in a \grammarterm{noptr-new-declarator}is
31243124
implicitly converted to \tcode{std\colcol{}size_t}.
31253125
\begin{example}
3126-
given the definition \tcode{int n = 42},
3126+
Given the definition \tcode{int n = 42},
31273127
\tcode{new float[n][5]} is well-formed (because \tcode{n} is the
31283128
\grammarterm{expression} of a \grammarterm{noptr-new-declarator}), but
31293129
\tcode{new float[5][n]} is ill-formed (because \tcode{n} is not a

source/intro.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
\defncontext{glvalue} type of the most derived object~(\ref{intro.object}) to which the
165165
glvalue refers\\
166166
\begin{example}
167-
if a pointer~(\ref{dcl.ptr}) \tcode{p} whose static type is ``pointer to
167+
If a pointer~(\ref{dcl.ptr}) \tcode{p} whose static type is ``pointer to
168168
class \tcode{B}'' is pointing to an object of class \tcode{D}, derived
169169
from \tcode{B} (Clause~\ref{class.derived}), the dynamic type of the
170170
expression \tcode{*p} is ``\tcode{D}''. References~(\ref{dcl.ref}) are

source/iterators.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@
324324
These requirements can be inferred from the uses that algorithm
325325
makes of \tcode{==} and \tcode{!=}.
326326
\begin{example}
327-
the call \tcode{find(a,b,x)}
327+
The call \tcode{find(a,b,x)}
328328
is defined only if the value of \tcode{a}
329329
has the property \textit{p}
330330
defined as follows:

source/overloading.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
these member function declarations can be overloaded if they differ in
9393
the type of their implicit object parameter.
9494
\begin{example}
95-
the following illustrates this distinction:
95+
The following illustrates this distinction:
9696

9797
\begin{codeblock}
9898
class X {
@@ -282,7 +282,7 @@
282282
Two parameter declarations that differ only in their default arguments
283283
are equivalent.
284284
\begin{example}
285-
consider the following:
285+
Consider the following:
286286

287287
\begin{codeblock}
288288
void f (int i, int j);
@@ -535,7 +535,7 @@
535535
is the cv-qualification on the
536536
member function declaration.
537537
\begin{example}
538-
for a
538+
For a
539539
\tcode{const}
540540
member
541541
function of class
@@ -1868,7 +1868,7 @@
18681868
Any difference in top-level cv-qualification is
18691869
subsumed by the initialization itself and does not constitute a conversion.
18701870
\begin{example}
1871-
a parameter of type
1871+
A parameter of type
18721872
\tcode{A}
18731873
can be initialized from an argument of type
18741874
\tcode{const A}.
@@ -2113,7 +2113,7 @@
21132113
do not affect the formation of a standard conversion
21142114
sequence, however.
21152115
\begin{example}
2116-
a function with an ``lvalue reference to \tcode{int}'' parameter can
2116+
A function with an ``lvalue reference to \tcode{int}'' parameter can
21172117
be a viable candidate even if the corresponding argument is an
21182118
\tcode{int}
21192119
bit-field.

source/special.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
\indextext{access control!member function and}%
6060
Special member functions obey the usual access rules (Clause~\ref{class.access}).
6161
\begin{example}
62-
declaring a constructor
62+
Declaring a constructor
6363
\tcode{protected}
6464
ensures that only derived classes and friends can create objects using it.
6565
\end{example}

0 commit comments

Comments
 (0)