mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 22:09:49 +00:00
docs(langref): fix outdated example
This commit is contained in:
parent
38bd2bbcf2
commit
8eb96c32e3
@ -10768,7 +10768,7 @@ test "string literal to constant slice" {
|
||||
</p>
|
||||
{#code_begin|syntax#}
|
||||
const builtin = @import("builtin");
|
||||
const separator = if (builtin.os.tag == builtin.Os.windows) '\\' else '/';
|
||||
const separator = if (builtin.os.tag == .windows) '\\' else '/';
|
||||
{#code_end#}
|
||||
<p>
|
||||
Example of what is imported with {#syntax#}@import("builtin"){#endsyntax#}:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user