authorgravatar for szlachciak.piotr@gmail.comPiotr Szlachciak <szlachciak.piotr@gmail.com> 2024-01-16 08:56:40+01:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2024-01-16 20:18:45+02:00
log2d4ebcffbfa57f549002195fae4454e124aa737b
tree52215ccfae4f287282cb98ba9547da07b1f121e5
parent6a3f9a0b50d989f5591a55424a328e3ef93c7e9c

Move the extern paragraph to a more logical place


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

doc/langref.html.in+7-7
......@@ -1396,6 +1396,13 @@ const Color = enum {
13961396};
13971397const color: Color = .@"really red";
13981398 {#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#}
13991406 {#header_close#}
14001407
14011408 {#header_open|Container Level Variables#}
......@@ -1465,13 +1472,6 @@ fn foo() i32 {
14651472 return S.x;
14661473}
14671474 {#code_end#}
1468 <p>
1469 The {#syntax#}extern{#endsyntax#} keyword or {#link|@extern#} builtin function can be used to link against a variable that is exported
1470 from another object. The {#syntax#}export{#endsyntax#} keyword or {#link|@export#} builtin function
1471 can be used to make a variable available to other objects at link time. In both cases,
1472 the type of the variable must be C ABI compatible.
1473 </p>
1474 {#see_also|Exporting a C Library#}
14751475 {#header_close#}
14761476
14771477 {#header_open|Thread Local Variables#}