zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 2d4ebcffbfa57f549002195fae4454e124aa737b (tree)
parent 6a3f9a0b50d989f5591a55424a328e3ef93c7e9c
Author: Piotr Szlachciak <szlachciak.piotr@gmail.com>
Date:   Tue, 16 Jan 2024 08:56:40 +0100

Move the extern paragraph to a more logical place

Diffstat:
Mdoc/langref.html.in | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/doc/langref.html.in b/doc/langref.html.in @@ -1396,6 +1396,13 @@ const Color = enum { }; const color: Color = .@"really red"; {#code_end#} + <p> + The {#syntax#}extern{#endsyntax#} keyword or {#link|@extern#} builtin function can be used to link against a variable that is exported + from another object. The {#syntax#}export{#endsyntax#} keyword or {#link|@export#} builtin function + can be used to make a variable available to other objects at link time. In both cases, + the type of the variable must be C ABI compatible. + </p> + {#see_also|Exporting a C Library#} {#header_close#} {#header_open|Container Level Variables#} @@ -1465,13 +1472,6 @@ fn foo() i32 { return S.x; } {#code_end#} - <p> - The {#syntax#}extern{#endsyntax#} keyword or {#link|@extern#} builtin function can be used to link against a variable that is exported - from another object. The {#syntax#}export{#endsyntax#} keyword or {#link|@export#} builtin function - can be used to make a variable available to other objects at link time. In both cases, - the type of the variable must be C ABI compatible. - </p> - {#see_also|Exporting a C Library#} {#header_close#} {#header_open|Thread Local Variables#}