Skip to content

Commit 6438625

Browse files
committed
[basic] Whitespace fixes around punctuators
1 parent f87a3b4 commit 6438625

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/basic.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
\begin{codeblock}
157157
int a; // defines \tcode{a}
158158
extern const int c = 1; // defines \tcode{c}
159-
int f(int x) { return x+a; } // defines \tcode{f} and defines \tcode{x}
159+
int f(int x) { return x + a; } // defines \tcode{f} and defines \tcode{x}
160160
struct S { int a; int b; }; // defines \tcode{S}, \tcode{S::a}, and \tcode{S::b}
161161
struct X { // defines \tcode{X}
162162
int x; // defines non-static data member \tcode{x}
@@ -802,13 +802,13 @@
802802
int j();
803803
void q();
804804
}
805-
namespace { int l=1; }
805+
namespace { int l = 1; }
806806
// the potential scope of \tcode{l} is from its point of declaration
807807
// to the end of the translation unit
808808

809809
namespace N {
810810
int g(char a) { // overloads \tcode{N::g(int)}
811-
return l+a; // \tcode{l} is from unnamed namespace
811+
return l + a; // \tcode{l} is from unnamed namespace
812812
}
813813

814814
int i; // error: duplicate definition
@@ -991,7 +991,7 @@
991991

992992
\begin{codeblock}
993993
typedef int N;
994-
template<N X, typename N, template<N Y> class T> struct A;
994+
template<N X, class N, template<N Y> class T> struct A;
995995
\end{codeblock}
996996

997997
Here, \tcode{X} is a non-type template parameter of type \tcode{int} and \tcode{Y} is a

0 commit comments

Comments
 (0)