Skip to content

Commit c724cc6

Browse files
sz-piotrVexu
authored andcommitted
Move the paragraph to under variables
1 parent 2d4ebcf commit c724cc6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/langref.html.in

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,13 @@ test "expectError demo" {
13691369
{#syntax#}var{#endsyntax#} when declaring a variable. This causes less work for both
13701370
humans and computers to do when reading code, and creates more optimization opportunities.
13711371
</p>
1372+
<p>
1373+
The {#syntax#}extern{#endsyntax#} keyword or {#link|@extern#} builtin function can be used to link against a variable that is exported
1374+
from another object. The {#syntax#}export{#endsyntax#} keyword or {#link|@export#} builtin function
1375+
can be used to make a variable available to other objects at link time. In both cases,
1376+
the type of the variable must be C ABI compatible.
1377+
</p>
1378+
{#see_also|Exporting a C Library#}
13721379

13731380
{#header_open|Identifiers#}
13741381
<p>
@@ -1396,13 +1403,6 @@ const Color = enum {
13961403
};
13971404
const color: Color = .@"really red";
13981405
{#code_end#}
1399-
<p>
1400-
The {#syntax#}extern{#endsyntax#} keyword or {#link|@extern#} builtin function can be used to link against a variable that is exported
1401-
from another object. The {#syntax#}export{#endsyntax#} keyword or {#link|@export#} builtin function
1402-
can be used to make a variable available to other objects at link time. In both cases,
1403-
the type of the variable must be C ABI compatible.
1404-
</p>
1405-
{#see_also|Exporting a C Library#}
14061406
{#header_close#}
14071407

14081408
{#header_open|Container Level Variables#}

0 commit comments

Comments
 (0)