Skip to content

Commit a0403a9

Browse files
lprvtkoeppe
authored andcommitted
[module.interface] Fix outdated example
1 parent 6c03993 commit a0403a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/modules.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,10 @@
382382
\begin{example}
383383
\begin{codeblock}
384384
export module M;
385+
int g;
385386
export namespace N {
386387
int x; // OK
387-
static_assert(1 == 1); // error: does not declare a name
388+
using ::g; // error: \tcode{::g} has module linkage
388389
}
389390
\end{codeblock}
390391
\end{example}

0 commit comments

Comments
 (0)