Skip to content

Commit b334df6

Browse files
burblebeetkoeppe
authored andcommitted
[dcl.pre] Fix example's error message to apply to "implementations where sizeof(int) > 1"
1 parent 1fb5249 commit b334df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281

282282
void g(char c) {
283283
f(0); // OK
284-
f(c); // error: must be int-sized
284+
f(c); // error on implementations where \tcode{sizeof(int) > 1}: must be \tcode{int}-sized
285285
}
286286
\end{codeblock}
287287
\end{example}

0 commit comments

Comments
 (0)