mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
langref: Rename std.fs.wasi.{PreopenList => Preopens}
This commit is contained in:
parent
8e7d9afdac
commit
d100a8e2dc
1 changed files with 1 additions and 1 deletions
|
|
@ -11471,7 +11471,7 @@ pub fn main() !void {
|
||||||
1: 123
|
1: 123
|
||||||
2: hello{#end_shell_samp#}
|
2: hello{#end_shell_samp#}
|
||||||
<p>A more interesting example would be extracting the list of preopens from the runtime.
|
<p>A more interesting example would be extracting the list of preopens from the runtime.
|
||||||
This is now supported in the standard library via {#syntax#}std.fs.wasi.PreopenList{#endsyntax#}:</p>
|
This is now supported in the standard library via {#syntax#}std.fs.wasi.Preopens{#endsyntax#}:</p>
|
||||||
{#code_begin|exe|wasi_preopens#}
|
{#code_begin|exe|wasi_preopens#}
|
||||||
{#target_wasi#}
|
{#target_wasi#}
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue