authorgravatar for szlachciak.piotr@gmail.comPiotr Szlachciak <szlachciak.piotr@gmail.com> 2024-01-16 18:11:34+01:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2024-01-16 20:18:45+02:00
logc724cc64871e0e7274b232689c07417e59de5918
tree8362696c71116860e5911fe4787a2537ce7ee5c6
parent2d4ebcffbfa57f549002195fae4454e124aa737b

Move the paragraph to under variables


1 files changed, 7 insertions(+), 7 deletions(-)

doc/langref.html.in+7-7
......@@ -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};
13971404const 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#}