authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2021-06-23 09:13:44+03:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2021-06-23 09:20:39+03:00
log29945fb8b3b954e846e3f062600a37b7c1ab47d6
treee13afc51d9ed9934cc73f1f4c9d2e6e115c819d8
parentce3679aa45710261afa2e519cfc55164541643fc

fix typos in langref.html

I thought I built the docs locally but apparently not.

1 files changed, 7 insertions(+), 7 deletions(-)

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