Skip to content

Commit 3e6cad2

Browse files
authored
[basic.types.general] Improve presentation of comments in example (#8636)
- put "sizeof" in code font - use a comma after "OK"
1 parent cc2efeb commit 3e6cad2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/basic.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5230,16 +5230,16 @@
52305230
void foo() {
52315231
xp++; // error: \tcode{X} is incomplete
52325232
arrp++; // error: incomplete type
5233-
arrpp++; // OK, sizeof \tcode{UNKA*} is known
5233+
arrpp++; // OK, \tcode{sizeof(UNKA*)} is known
52345234
}
52355235

52365236
struct X { int i; }; // now \tcode{X} is a complete type
52375237
int arr[10]; // now the type of \tcode{arr} is complete
52385238

52395239
X x;
52405240
void bar() {
5241-
xp = &x; // OK; type is ``pointer to \tcode{X}''
5242-
arrp = &arr; // OK; qualification conversion\iref{conv.qual}
5241+
xp = &x; // OK, type is ``pointer to \tcode{X}''
5242+
arrp = &arr; // OK, qualification conversion\iref{conv.qual}
52435243
xp++; // OK, \tcode{X} is complete
52445244
arrp++; // error: \tcode{UNKA} can't be completed
52455245
}

0 commit comments

Comments
 (0)