Commit 8eb96c32e3

zooster <r00ster91@proton.me>
2022-10-03 23:05:41
docs(langref): fix outdated example
1 parent 38bd2bb
Changed files (1)
doc/langref.html.in
@@ -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#}: