zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 29945fb8b3b954e846e3f062600a37b7c1ab47d6 (tree)
parent ce3679aa45710261afa2e519cfc55164541643fc
Author: Veikka Tuominen <git@vexu.eu>
Date:   Wed, 23 Jun 2021 09:13:44 +0300

fix typos in langref.html

I thought I built the docs locally but apparently not.

Diffstat:
Mdoc/langref.html.in | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/doc/langref.html.in b/doc/langref.html.in @@ -258,7 +258,7 @@ pub fn main() !void { <p> The code sample begins by adding Zig's Standard Library to the build using the {#link|@import#} builtin function. The {#syntax#}@import("std"){#endsyntax#} function call creates a structure to represent the Standard Library. - The code then {#link|declares|Container level Variables#} a + The code then {#link|declares|Container Level Variables#} a {#link|constant identifier|Assignment#}, named <code>std</code>, for easy access to <a href="https://github.com/ziglang/zig/wiki/FAQ#where-is-the-documentation-for-the-zig-standard-library">Zig's standard library</a>. </p> @@ -927,8 +927,8 @@ fn foo() i32 { const expect = std.testing.expect; test "static local variable" { - expect(foo() == 1235); - expect(foo() == 1236); + try expect(foo() == 1235); + try expect(foo() == 1236); } fn foo() i32 { @@ -7570,10 +7570,10 @@ test "main" { <code>declaration</code> must be one of two things: </p> <ul> - <li>An identifier ({#syntax#}x{#endsyntax#}) identifying a {#link|function|Functions#} or - {#link|global variable|Global Variables#}.</li> - <li>Field access ({#syntax#}x.y{#endsyntax#}) looking up a {#link|function|Functions#} or - {#link|global variable|Global Variables#}.</li> + <li>An identifier ({#syntax#}x{#endsyntax#}) identifying a {#link|function|Functions#} or a + {#link|variable|Container Level Variables#}.</li> + <li>Field access ({#syntax#}x.y{#endsyntax#}) looking up a {#link|function|Functions#} or a + {#link|variable|Container Level Variables#}.</li> </ul> <p> This builtin can be called from a {#link|comptime#} block to conditionally export symbols.