diff --git a/doc/langref.html.in b/doc/langref.html.in index 63e4c946b6..41d8838892 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -7517,13 +7517,13 @@ test "main" { {#header_close#} {#header_open|@export#} -
{#syntax#}@export(target: anytype, comptime options: std.builtin.ExportOptions) void{#endsyntax#}
+ {#syntax#}@export(identifier, comptime options: std.builtin.ExportOptions) void{#endsyntax#}
Creates a symbol in the output object file.
This function can be called from a {#link|comptime#} block to conditionally export symbols. - When {#syntax#}target{#endsyntax#} is a function with the C calling convention and + When {#syntax#}identifier{#endsyntax#} is a function with the C calling convention and {#syntax#}options.linkage{#endsyntax#} is {#syntax#}Strong{#endsyntax#}, this is equivalent to the {#syntax#}export{#endsyntax#} keyword used on a function:
@@ -7550,6 +7550,14 @@ export fn @"A function name that is a complete sentence."() void {} {#see_also|Exporting a C Library#} {#header_close#} + {#header_open|@extern#} +{#syntax#}@extern(T: type, comptime options: std.builtin.ExternOptions) *T{#endsyntax#}
+ + Creates a reference to an external symbol in the output object file. +
+ {#see_also|@export#} + {#header_close#} + {#header_open|@fence#}{#syntax#}@fence(order: AtomicOrder){#endsyntax#}