Skip to content

Commit 97f2160

Browse files
committed
Fix '// Error' in examples to use '// error' instead.
1 parent fa95826 commit 97f2160

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

source/compatibility.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@
16171617
};
16181618
struct derived : base {};
16191619

1620-
derived d1{}; // Error. The code was well-formed before.
1620+
derived d1{}; // error; the code was well-formed in \CppXIV
16211621
derived d2; // still OK
16221622
\end{codeblock}
16231623

source/declarations.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,10 +1444,10 @@
14441444
-> decltype((h<T>())); // does not force completion of \tcode{A<T>}; \tcode{A<T>::\~{}A()} is not implicitly
14451445
// used within the context of this \grammarterm{decltype-specifier}
14461446
void r() {
1447-
q(42); // Error: deduction against \tcode{q} succeeds, so overload resolution selects
1448-
// the specialization ``\tcode{q(T) -> decltype((h<T>())) [with T=int]}''.
1449-
// The return type is \tcode{A<int>}, so a temporary is introduced and its
1450-
// destructor is used, so the program is ill-formed.
1447+
q(42); // error: deduction against \tcode{q} succeeds, so overload resolution selects
1448+
// the specialization ``\tcode{q(T) -> decltype((h<T>())) [with T=int]}'';
1449+
// the return type is \tcode{A<int>}, so a temporary is introduced and its
1450+
// destructor is used, so the program is ill-formed
14511451
}
14521452
\end{codeblock}
14531453
\end{example}

source/overloading.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@
294294
void prog () {
295295
f (1, 2); // OK: call \tcode{f(int, int)}
296296
f (1); // OK: call \tcode{f(int, int)}
297-
f (); // Error: \tcode{f(int, int)} or \tcode{f()}?
297+
f (); // error: \tcode{f(int, int)} or \tcode{f()}?
298298
}
299299
\end{codeblock}
300300
\end{example}
@@ -1840,7 +1840,7 @@
18401840

18411841
void use() {
18421842
f(3); // OK, default argument was not used for viability
1843-
f(); // Error: found default argument twice
1843+
f(); // error: found default argument twice
18441844
}
18451845
\end{codeblock}
18461846
\end{example}

0 commit comments

Comments
 (0)