docs(langref): fix outdated example

This commit is contained in:
zooster 2022-10-03 23:05:41 +02:00 committed by Andrew Kelley
parent 38bd2bbcf2
commit 8eb96c32e3

View File

@ -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#}: