mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
langref: Rename std.fs.wasi.{PreopenList => Preopens}
This commit is contained in:
parent
8e7d9afdac
commit
d100a8e2dc
@ -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…
x
Reference in New Issue
Block a user