Skip to content

Commit 24d1797

Browse files
cubbimewtkoeppe
authored andcommitted
Improve comment formatting; includes replacing "file" with "translation unit"
1 parent 4b77436 commit 24d1797

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

source/basic.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@
498498
\begin{example}
499499

500500
\begin{codeblock}
501-
//translation unit 1:
501+
// translation unit 1:
502502
struct X {
503503
X(int, int);
504504
X(int, int, int);
@@ -509,7 +509,7 @@
509509
};
510510
D d2; // \tcode{X(int, int)} called by \tcode{D()}
511511

512-
//translation unit 2:
512+
// translation unit 2:
513513
struct X {
514514
X(int, int);
515515
X(int, int, int);

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3553,7 +3553,7 @@
35533553
// with C language linkage has two definitions
35543554
}
35553555

3556-
int A::f() { return 98; } //definition for the function \tcode{f} with C language linkage
3556+
int A::f() { return 98; } // definition for the function \tcode{f} with C language linkage
35573557
extern "C" int h() { return 97; } // definition for the function \tcode{h} with C language linkage
35583558
// \tcode{A::h} and \tcode{::h} refer to the same function
35593559
\end{codeblock}

source/special.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@
13651365

13661366
void f() {
13671367
B* bp = new D;
1368-
delete bp; //1: uses \tcode{D::operator delete(void*)}
1368+
delete bp; // 1: uses \tcode{D::operator delete(void*)}
13691369
}
13701370
\end{codeblock}
13711371

@@ -2207,7 +2207,7 @@
22072207
B bobj; // definition of \tcode{bobj}
22082208

22092209
extern X xobj;
2210-
int* p3 = &xobj.i; //OK, \tcode{X} is a trivial class
2210+
int* p3 = &xobj.i; // OK, \tcode{X} is a trivial class
22112211
X xobj;
22122212
\end{codeblock}
22132213

source/templates.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,7 +2592,7 @@
25922592

25932593
\begin{minipage}{.45\hsize}
25942594
\begin{codeblock}
2595-
// file1.c
2595+
// translation unit 1:
25962596
template<class T>
25972597
void f(T*);
25982598
void g(int* p) {
@@ -2602,7 +2602,7 @@
26022602
\end{minipage}
26032603
\begin{minipage}{.45\hsize}
26042604
\begin{codeblock}
2605-
// file2.c
2605+
// translation unit 2:
26062606
template<class T>
26072607
void f(T);
26082608
void h(int* p) {
@@ -5435,7 +5435,7 @@
54355435
// member template specialization
54365436
template<> template<class X1> void A<int>::g1(int, X1);
54375437

5438-
//member template specialization
5438+
// member template specialization
54395439
template<> template<>
54405440
void A<int>::g1(int, char); // \tcode{X1} deduced as \tcode{char}
54415441
template<> template<>

0 commit comments

Comments
 (0)