Skip to content

Commit 94e7e59

Browse files
committed
[diff.expr] Replace "For example" with \begin{example} environment
1 parent 5611dea commit 94e7e59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/compatibility.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3047,7 +3047,7 @@
30473047
taking the address of a dereferenced null or past-the-end pointer value
30483048
is well-defined in C (and yields the original pointer value),
30493049
but results in undefined behavior in \Cpp{}.
3050-
For example:
3050+
\begin{example}
30513051
\begin{codeblock}
30523052
void f() {
30533053
char *p = nullptr;
@@ -3057,6 +3057,7 @@
30573057
int *q = &a[5]; // well-defined in C, undefined behavior in \Cpp{}
30583058
}
30593059
\end{codeblock}
3060+
\end{example}
30603061
\rationale
30613062
Consistent treatment of lvalues in \Cpp{}.
30623063
\effect

0 commit comments

Comments
 (0)