Skip to content

Commit 2b71071

Browse files
committed
Reduce excessive indentation of comments.
Helps layout on smaller (e.g. half-screen) window sizes.
1 parent 96782c1 commit 2b71071

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

source/basic.tex

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@
282282
#include <string>
283283

284284
struct C {
285-
std::string s; // \tcode{std::string} is the standard library class\iref{string.classes}
285+
std::string s; // \tcode{std::string} is the standard library class\iref{string.classes}
286286
};
287287

288288
int main() {
@@ -2414,23 +2414,23 @@
24142414

24152415
void h()
24162416
{
2417-
AB::g(); // \tcode{g} is declared directly in \tcode{AB}, therefore \tcode{S} is $\{ \tcode{AB::g()} \}$ and \tcode{AB::g()} is chosen
2417+
AB::g(); // \tcode{g} is declared directly in \tcode{AB}, therefore \tcode{S} is $\{ \tcode{AB::g()} \}$ and \tcode{AB::g()} is chosen
24182418

2419-
AB::f(1); // \tcode{f} is not declared directly in \tcode{AB} so the rules are applied recursively to \tcode{A} and \tcode{B};
2420-
// namespace \tcode{Y} is not searched and \tcode{Y::f(float)} is not considered;
2421-
// \tcode{S} is $\{ \tcode{A::f(int)}, \tcode{B::f(char)} \}$ and overload resolution chooses \tcode{A::f(int)}
2419+
AB::f(1); // \tcode{f} is not declared directly in \tcode{AB} so the rules are applied recursively to \tcode{A} and \tcode{B};
2420+
// namespace \tcode{Y} is not searched and \tcode{Y::f(float)} is not considered;
2421+
// \tcode{S} is $\{ \tcode{A::f(int)}, \tcode{B::f(char)} \}$ and overload resolution chooses \tcode{A::f(int)}
24222422

2423-
AB::f('c'); // as above but resolution chooses \tcode{B::f(char)}
2423+
AB::f('c'); // as above but resolution chooses \tcode{B::f(char)}
24242424

2425-
AB::x++; // \tcode{x} is not declared directly in \tcode{AB}, and is not declared in \tcode{A} or \tcode{B}, so the rules
2426-
// are applied recursively to \tcode{Y} and \tcode{Z}, \tcode{S} is $\{ \}$ so the program is ill-formed
2425+
AB::x++; // \tcode{x} is not declared directly in \tcode{AB}, and is not declared in \tcode{A} or \tcode{B}, so the rules
2426+
// are applied recursively to \tcode{Y} and \tcode{Z}, \tcode{S} is $\{ \}$ so the program is ill-formed
24272427

2428-
AB::i++; // \tcode{i} is not declared directly in \tcode{AB} so the rules are applied recursively to \tcode{A} and \tcode{B},
2429-
// \tcode{S} is $\{ \tcode{A::i}, \tcode{B::i} \}$ so the use is ambiguous and the program is ill-formed
2428+
AB::i++; // \tcode{i} is not declared directly in \tcode{AB} so the rules are applied recursively to \tcode{A} and \tcode{B},
2429+
// \tcode{S} is $\{ \tcode{A::i}, \tcode{B::i} \}$ so the use is ambiguous and the program is ill-formed
24302430

2431-
AB::h(16.8); // \tcode{h} is not declared directly in \tcode{AB} and not declared directly in \tcode{A} or \tcode{B} so the rules
2432-
// are applied recursively to \tcode{Y} and \tcode{Z}, \tcode{S} is $\{ \tcode{Y::h(int)}, \tcode{Z::h(double)} \}$ and
2433-
// overload resolution chooses \tcode{Z::h(double)}
2431+
AB::h(16.8); // \tcode{h} is not declared directly in \tcode{AB} and not declared directly in \tcode{A} or \tcode{B} so the rules
2432+
// are applied recursively to \tcode{Y} and \tcode{Z}, \tcode{S} is $\{ \tcode{Y::h(int)}, \tcode{Z::h(double)} \}$ and
2433+
// overload resolution chooses \tcode{Z::h(double)}
24342434
}
24352435
\end{codeblock}
24362436
\end{example}

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2507,7 +2507,7 @@
25072507
}
25082508
auto g() {
25092509
return [] {
2510-
return [*this] { }; // error: \tcode{*this} not captured by outer \grammarterm{lambda-expression}
2510+
return [*this] { }; // error: \tcode{*this} not captured by outer \grammarterm{lambda-expression}
25112511
}();
25122512
}
25132513
};

0 commit comments

Comments
 (0)