Skip to content

Commit 590f7b4

Browse files
committed
Reduce excessive indentation of comments.
Helps layout on smaller (e.g. half-screen) window sizes.
1 parent fbd1a70 commit 590f7b4

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
@@ -317,7 +317,7 @@
317317
#include <string>
318318

319319
struct C {
320-
std::string s; // \tcode{std::string} is the standard library class\iref{string.classes}
320+
std::string s; // \tcode{std::string} is the standard library class\iref{string.classes}
321321
};
322322

323323
int main() {
@@ -2619,23 +2619,23 @@
26192619

26202620
void h()
26212621
{
2622-
AB::g(); // \tcode{g} is declared directly in \tcode{AB}, therefore \tcode{S} is $\{ \tcode{AB::g()} \}$ and \tcode{AB::g()} is chosen
2622+
AB::g(); // \tcode{g} is declared directly in \tcode{AB}, therefore \tcode{S} is $\{ \tcode{AB::g()} \}$ and \tcode{AB::g()} is chosen
26232623

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

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

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

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

2636-
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
2637-
// are applied recursively to \tcode{Y} and \tcode{Z}, \tcode{S} is $\{ \tcode{Y::h(int)}, \tcode{Z::h(double)} \}$ and
2638-
// overload resolution chooses \tcode{Z::h(double)}
2636+
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
2637+
// are applied recursively to \tcode{Y} and \tcode{Z}, \tcode{S} is $\{ \tcode{Y::h(int)}, \tcode{Z::h(double)} \}$ and
2638+
// overload resolution chooses \tcode{Z::h(double)}
26392639
}
26402640
\end{codeblock}
26412641
\end{example}

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2924,7 +2924,7 @@
29242924
}
29252925
auto g() {
29262926
return [] {
2927-
return [*this] { }; // error: \tcode{*this} not captured by outer \grammarterm{lambda-expression}
2927+
return [*this] { }; // error: \tcode{*this} not captured by outer \grammarterm{lambda-expression}
29282928
}();
29292929
}
29302930
};

0 commit comments

Comments
 (0)